summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2019-03-04 03:52:48 -0600
committerTimothy Pearson <tpearson@raptorengineering.com>2019-03-04 03:52:48 -0600
commit5fe8e4fcf3872bcf9720633d4e4b0ba1979589af (patch)
tree6a5487be9a1bc8c4de085cbd152dcce52224b26f
parent485c758830ebec5ceb9c74cd3ec4f344b0121fd3 (diff)
downloadxrdp-proprietary-ulab-original.tar.gz
xrdp-proprietary-ulab-original.zip
Work around GTK pixmaps (e.g. GIMP icons, etc) showing up as black squaresulab-original
-rw-r--r--xorg/X11R7.6/rdp/rdpmain.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/xorg/X11R7.6/rdp/rdpmain.c b/xorg/X11R7.6/rdp/rdpmain.c
index 48f5a2e9..7e0cb3b7 100644
--- a/xorg/X11R7.6/rdp/rdpmain.c
+++ b/xorg/X11R7.6/rdp/rdpmain.c
@@ -67,6 +67,9 @@ static int g_greenBits = 6;
static int g_blueBits = 5;
static int g_initOutputCalled = 0;
/* Common pixmap formats */
+#if 0
+// FIXME
+// This is disabled to work around 32bpp pixmaps showing up all black when rendered
static PixmapFormatRec g_formats[MAXFORMATS] =
{
{ 1, 1, BITMAP_SCANLINE_PAD },
@@ -78,6 +81,18 @@ static PixmapFormatRec g_formats[MAXFORMATS] =
{ 32, 32, BITMAP_SCANLINE_PAD },
};
static int g_numFormats = 7;
+#else
+static PixmapFormatRec g_formats[MAXFORMATS] =
+{
+ { 1, 1, BITMAP_SCANLINE_PAD },
+ { 4, 8, BITMAP_SCANLINE_PAD },
+ { 8, 8, BITMAP_SCANLINE_PAD },
+ { 15, 16, BITMAP_SCANLINE_PAD },
+ { 16, 16, BITMAP_SCANLINE_PAD },
+ { 24, 32, BITMAP_SCANLINE_PAD },
+};
+static int g_numFormats = 6;
+#endif
static miPointerSpriteFuncRec g_rdpSpritePointerFuncs =
{
/* these are in rdpinput.c */