Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 134677 Details for
Bug 197489
media-libs/imlib - Patch to fix issue when MIT-SHM does not support shared pixmaps (Kuickshow renders images wrong)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix imlib MIT-SHM issue
imlib.diff (text/plain), 2.71 KB, created by
Antti Mäkelä
on 2007-10-30 05:34:32 UTC
(
hide
)
Description:
Patch to fix imlib MIT-SHM issue
Filename:
MIME Type:
Creator:
Antti Mäkelä
Created:
2007-10-30 05:34:32 UTC
Size:
2.71 KB
patch
obsolete
>diff -up -ru imlib-1.9.15.orig/gdk_imlib/misc.c imlib-1.9.15/gdk_imlib/misc.c >--- imlib-1.9.15.orig/gdk_imlib/misc.c 2002-03-04 18:06:32.000000000 +0100 >+++ imlib-1.9.15/gdk_imlib/misc.c 2007-10-28 14:00:04.000000000 +0100 >@@ -674,6 +674,10 @@ gdk_imlib_init_params(GdkImlibInitParams > 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,14 @@ gdk_imlib_init_params(GdkImlibInitParams > 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 +936,8 @@ gdk_imlib_init_params(GdkImlibInitParams > } > 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; >diff -up -ru imlib-1.9.15.orig/Imlib/misc.c imlib-1.9.15/Imlib/misc.c >--- imlib-1.9.15.orig/Imlib/misc.c 2004-09-21 02:22:59.000000000 +0200 >+++ imlib-1.9.15/Imlib/misc.c 2007-10-28 14:00:23.000000000 +0100 >@@ -675,6 +675,10 @@ Imlib_init_with_params(Display * disp, I > 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 +694,14 @@ Imlib_init_with_params(Display * disp, I > 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; >@@ -952,8 +953,8 @@ Imlib_init_with_params(Display * disp, I > } > 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197489
: 134677