[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users-jp 00369] Re: Problem:irix



曽我部です。

首藤様、尾上様、メールを頂きありがとうございました。

> > MagicPoint のソース中に、
> > display の depth が 8の倍数であることを仮定している箇所など
> > ありませんでしょうか?
 
> 以前にもそんな話があったと思って、今見たら draw.c に
> 	/*XXX "depth" is wrong - mgp-users-jp 135*/
> と書いてあります。[mgp-users-jp 00135] も首藤さんでしたね。
> 
> >   ((depth - 1) >> 3 + 1) << 3
> 
> これだと (かっこが足りないのはいいとして) 24 のときに 32 になって
> くれなさそうなので、
> 	8 << (depth - 1) / 8
> ということではどうでしょう。

 とても参考になりました。ありがとうございます。しかし、私の現在の
環境では TrueColor で表示することができません。xdpyinfo で確認して
みると、

----
  number of visuals:    12
  default visual id:  0x23
  visual:
    visual id:    0x20
    class:    PseudoColor
    depth:    2 planes
    available colormap entries:    4
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x21
    class:    PseudoColor
    depth:    4 planes
    available colormap entries:    16
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x22
    class:    TrueColor
    depth:    4 planes
    available colormap entries:    4 per subfield
    red, green, blue masks:    0x1, 0x6, 0x8
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x23
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    visual id:    0x24
    class:    StaticColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x7, 0x38, 0xc0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x25
    class:    TrueColor
    depth:    8 planes
    available colormap entries:    8 per subfield
    red, green, blue masks:    0x7, 0x38, 0xc0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x26
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x27
    class:    PseudoColor
    depth:    12 planes
    available colormap entries:    4096
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x28
    class:    PseudoColor
    depth:    12 planes
    available colormap entries:    4096
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x29
    class:    TrueColor
    depth:    12 planes
    available colormap entries:    16 per subfield
    red, green, blue masks:    0xf, 0xf0, 0xf00
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2a
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2b
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  number of mono multibuffer types:    4
    visual id, max buffers, depth:    0x21, 2, 4
    visual id, max buffers, depth:    0x22, 2, 4
    visual id, max buffers, depth:    0x28, 2, 12
    visual id, max buffers, depth:    0x29, 2, 12
  number of stereo multibuffer types:    0

----
こんな感じになっていました。そして、mgp のウィンドウの情報を
xwininfo で確認してみたところ、以下のようになっていました。

----
xwininfo: Window id: 0x4400001 "MagicPoint"

  Absolute upper-left X:  42
  Absolute upper-left Y:  412
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1228
  Height: 983
  Depth: 8
  Visual id: 0x23
  Visual Class: PseudoColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2c (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: Always
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +42+412  -10+412  -10--371  +42--371
  -geometry 1228x983-2+382
----
これは私の使っている irix の設定に問題があるのでしょうか。それとも、
プログラムの修正が必要なのでしょうか。


----
曽我部