Lines 675-680
Imlib_init_with_params(Display * disp, I
Link Here
|
675 |
id->x.root = DefaultRootWindow(disp); /* the root window id */ |
675 |
id->x.root = DefaultRootWindow(disp); /* the root window id */ |
676 |
id->x.visual = DefaultVisual(disp, id->x.screen); /* the visual type */ |
676 |
id->x.visual = DefaultVisual(disp, id->x.screen); /* the visual type */ |
677 |
id->x.depth = DefaultDepth(disp, id->x.screen); /* the depth of the screen in bpp */ |
677 |
id->x.depth = DefaultDepth(disp, id->x.screen); /* the depth of the screen in bpp */ |
|
|
678 |
|
679 |
id->x.shm = 0; |
680 |
id->x.shmp = 0; |
681 |
id->max_shm = 0; |
678 |
#ifdef HAVE_SHM |
682 |
#ifdef HAVE_SHM |
679 |
if (XShmQueryExtension(id->x.disp)) |
683 |
if (XShmQueryExtension(id->x.disp)) |
680 |
{ |
684 |
{ |
Lines 690-706
Imlib_init_with_params(Display * disp, I
Link Here
|
690 |
id->x.last_xim = NULL; |
694 |
id->x.last_xim = NULL; |
691 |
id->x.last_sxim = NULL; |
695 |
id->x.last_sxim = NULL; |
692 |
id->max_shm = 0x7fffffff; |
696 |
id->max_shm = 0x7fffffff; |
693 |
if (XShmPixmapFormat(id->x.disp) == ZPixmap) |
697 |
if ((XShmPixmapFormat(id->x.disp) == ZPixmap && |
|
|
698 |
(pm == True))) |
694 |
id->x.shmp = 1; |
699 |
id->x.shmp = 1; |
695 |
} |
700 |
} |
696 |
} |
701 |
} |
697 |
} |
702 |
} |
698 |
else |
|
|
699 |
#endif |
703 |
#endif |
700 |
{ |
704 |
|
701 |
id->x.shm = 0; |
|
|
702 |
id->x.shmp = 0; |
703 |
} |
704 |
id->cache.on_image = 0; |
705 |
id->cache.on_image = 0; |
705 |
id->cache.size_image = 0; |
706 |
id->cache.size_image = 0; |
706 |
id->cache.num_image = 0; |
707 |
id->cache.num_image = 0; |
Lines 952-959
Imlib_init_with_params(Display * disp, I
Link Here
|
952 |
} |
953 |
} |
953 |
if (p->flags & PARAMS_SHAREDPIXMAPS) |
954 |
if (p->flags & PARAMS_SHAREDPIXMAPS) |
954 |
{ |
955 |
{ |
955 |
if (id->x.shm) |
956 |
if (!p->sharedpixmaps) |
956 |
id->x.shmp = p->sharedpixmaps; |
957 |
id->x.shmp = 0; |
957 |
} |
958 |
} |
958 |
if (p->flags & PARAMS_PALETTEOVERRIDE) |
959 |
if (p->flags & PARAMS_PALETTEOVERRIDE) |
959 |
override = p->paletteoverride; |
960 |
override = p->paletteoverride; |