mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
* 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:
parent
83f1caccc9
commit
f1c921c80c
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue