Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
imlib
imlib-no_shared_pixmaps.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File imlib-no_shared_pixmaps.patch of Package imlib
* The boolean value returned via the last parameter to XShmQueryVersion() isn't honoured everywhere. * The init functions that take parameters allow the caller to enable shared pixmaps when they aren't supported (or disabled by configuration files). These result in incorrect rendering when the MIT-SHM extension doesn't support shared pixmaps, e.g. using EXA with current versions of Xorg. ================================================================================ --- Imlib/misc.c +++ Imlib/misc.c @@ -137,8 +137,7 @@ id->x.last_xim = NULL; id->x.last_sxim = NULL; id->max_shm = 0x7fffffff; - if ((XShmPixmapFormat(id->x.disp) == ZPixmap) && - (pm == True)) + if ((XShmPixmapFormat(id->x.disp) == ZPixmap) && (pm == True)) id->x.shmp = 1; } } @@ -675,6 +674,10 @@ id->x.root = DefaultRootWindow(disp); /* the root window id */ id->x.visual = DefaultVisual(disp, id->x.screen); /* the visual type */ id->x.depth = DefaultDepth(disp, id->x.screen); /* the depth of the screen in bpp */ + + id->x.shm = 0; + id->x.shmp = 0; + id->max_shm = 0; #ifdef HAVE_SHM if (XShmQueryExtension(id->x.disp)) { @@ -690,17 +693,14 @@ id->x.last_xim = NULL; id->x.last_sxim = NULL; id->max_shm = 0x7fffffff; - if (XShmPixmapFormat(id->x.disp) == ZPixmap) + if ((XShmPixmapFormat(id->x.disp) == ZPixmap && + (pm == True))) id->x.shmp = 1; } } } - else #endif - { - id->x.shm = 0; - id->x.shmp = 0; - } + id->cache.on_image = 0; id->cache.size_image = 0; id->cache.num_image = 0; @@ -949,8 +949,8 @@ } if (p->flags & PARAMS_SHAREDPIXMAPS) { - if (id->x.shm) - id->x.shmp = p->sharedpixmaps; + if (!p->sharedpixmaps) + id->x.shmp = 0; } if (p->flags & PARAMS_PALETTEOVERRIDE) override = p->paletteoverride; --- gdk_imlib/misc.c +++ gdk_imlib/misc.c @@ -674,6 +674,10 @@ visual = gdk_rgb_get_visual(); id->x.visual = GDK_VISUAL_XVISUAL(visual); /* the visual type */ id->x.depth = visual->depth; /* the depth of the screen in bpp */ + + id->x.shm = 0; + id->x.shmp = 0; + id->max_shm = 0; #ifdef HAVE_SHM if (XShmQueryExtension(id->x.disp)) { @@ -689,17 +693,13 @@ id->x.last_xim = NULL; id->x.last_sxim = NULL; id->max_shm = 0x7fffffff; - if (XShmPixmapFormat(id->x.disp) == ZPixmap) + if ((XShmPixmapFormat(id->x.disp) == ZPixmap) && (pm == True)) id->x.shmp = 1; } } } - else #endif - { - id->x.shm = 0; - id->x.shmp = 0; - } + id->cache.on_image = 0; id->cache.size_image = 0; id->cache.num_image = 0; @@ -935,8 +935,8 @@ } if (p->flags & PARAMS_SHAREDPIXMAPS) { - if (id->x.shm) - id->x.shmp = p->sharedpixmaps; + if (!p->sharedpixmaps) + id->x.shmp = 0; } if (p->flags & PARAMS_PALETTEOVERRIDE) override = p->paletteoverride;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor