0
查看我的xdpyinfo輸出,我看到許多重複完全相同特徵的Visuals。他們爲什麼重複?爲什麼在xdpyinfo中重複XVisuals
例如,
visual:
visual id: 0x6e
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x6f
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
0x6e和0x6f是完全一樣的。
一個相關的問題:一個視覺已經有一個深度的概念,那麼爲什麼它需要將深度和視覺都傳遞給XCreateWindow?
我沒有意識到Visual的深度是「最大深度」。 – reetone
@reetone這顯然是錯誤的,請參閱更新(稍後我知道)。 –