]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/utilsx11.cpp
Fix wxListCtrl background colour bug Part I
[wxWidgets.git] / src / unix / utilsx11.cpp
index 360d59df7eb6ac837d18f3d4134bd3156f782989..073a4eb0d4e1a874441fc778be81fa0439d51010 100644 (file)
@@ -59,6 +59,12 @@ void wxSetIconsX11( WXDisplay* display, WXWindow window,
                 gMask = image.GetMaskGreen();
                 bMask = image.GetMaskBlue();
             }
+            else // no mask, but still init the variables to avoid warnings
+            {
+                rMask =
+                gMask =
+                bMask = 0;
+            }
 
             *ptr++ = width;
             *ptr++ = height;