瀏覽代碼

Merge branch 'master' of https://github.com/johnmartin-oracle/tigervnc

tags/v1.11.90
Pierre Ossman 3 年之前
父節點
當前提交
9b06fd9969
共有 1 個文件被更改,包括 11 次插入11 次删除
  1. 11
    11
      vncviewer/Surface_X11.cxx

+ 11
- 11
vncviewer/Surface_X11.cxx 查看文件

@@ -123,17 +123,17 @@ void Surface::alloc()
// we find such a format
templ.type = PictTypeDirect;
templ.depth = 32;
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
templ.direct.alpha = 0;
templ.direct.red = 8;
templ.direct.green = 16;
templ.direct.blue = 24;
#else
templ.direct.alpha = 24;
templ.direct.red = 16;
templ.direct.green = 8;
templ.direct.blue = 0;
#endif
if (XImageByteOrder(fl_display) == MSBFirst) {
templ.direct.alpha = 0;
templ.direct.red = 8;
templ.direct.green = 16;
templ.direct.blue = 24;
} else {
templ.direct.alpha = 24;
templ.direct.red = 16;
templ.direct.green = 8;
templ.direct.blue = 0;
}
templ.direct.alphaMask = 0xff;
templ.direct.redMask = 0xff;
templ.direct.greenMask = 0xff;

Loading…
取消
儲存