浏览代码

Set Pixmap depths after creating visuals

This affects the ordering of visuals, which breaks some buggy
applications that assume the first visual is the root window visual.
pull/1716/head
Pierre Ossman 4 个月前
父节点
当前提交
7ad74d1416
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      unix/xserver/hw/vnc/xvnc.c

+ 2
- 2
unix/xserver/hw/vnc/xvnc.c 查看文件

@@ -992,8 +992,6 @@ vncScreenInit(ScreenPtr pScreen, int argc, char **argv)
vncFbptr[0] = pbits;
vncFbstride[0] = vncScreenInfo.fb.paddedWidth;

miSetPixmapDepths();

switch (vncScreenInfo.fb.depth) {
case 16:
miSetVisualTypesAndMasks(16,
@@ -1018,6 +1016,8 @@ vncScreenInit(ScreenPtr pScreen, int argc, char **argv)
return FALSE;
}

miSetPixmapDepths();

ret = fbScreenInit(pScreen, pbits,
vncScreenInfo.fb.width, vncScreenInfo.fb.height,
dpi, dpi, vncScreenInfo.fb.paddedWidth,

正在加载...
取消
保存