* Source/x11/XGServerWindow.m (_createAppIconPixmaps): accept

WRaster context depth 24.
  (styleoffsets::::::): do not guess offsets for miniwindow and
  appicon they are equal to 0.0.
This commit is contained in:
Sergii Stoian 2020-03-12 01:10:12 +02:00
parent 83f1caccc9
commit f1c921c80c

View file

@ -2283,7 +2283,8 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
if ((style & NSIconWindowMask) || (style & NSMiniWindowMask))
{
style = NSBorderlessWindowMask;
*l = *r = *t = *b = 0.0;
return;
}
/* Next try to get the offset information that we have obtained from
@ -2841,7 +2842,7 @@ swapColors(unsigned char *image_data, NSBitmapImageRep *rep)
height = [rep pixelsHigh];
colors = [rep samplesPerPixel];
if (rcontext->depth != 32)
if (rcontext->depth != 32 && rcontext->depth != 24)
{
NSLog(@"Unsupported context depth %d", rcontext->depth);
return 0;