Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 117947 Details for
Bug 176801
app-emulation/wine-0.9.36 BadPixmap crash
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
wine-badpixmap.patch
wine-badpixmap.patch (text/plain), 2.15 KB, created by
Paul Bredbury
on 2007-05-02 12:20:30 UTC
(
hide
)
Description:
wine-badpixmap.patch
Filename:
MIME Type:
Creator:
Paul Bredbury
Created:
2007-05-02 12:20:30 UTC
Size:
2.15 KB
patch
obsolete
>diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c >index e03540e..6b86c74 100644 >--- a/dlls/winex11.drv/xrender.c >+++ b/dlls/winex11.drv/xrender.c >@@ -85,7 +85,6 @@ struct tagXRENDERINFO > int cache_index; > Picture pict; > Picture tile_pict; >- Pixmap tile_xpm; > COLORREF lastTextColor; > }; > >@@ -596,7 +595,6 @@ void X11DRV_XRender_UpdateDrawable(X11DRV_PDEVICE *physDev) > if(physDev->xrender->pict) > { > TRACE("freeing pict = %lx dc = %p\n", physDev->xrender->pict, physDev->hdc); >- XFlush(gdi_display); > pXRenderFreePicture(gdi_display, physDev->xrender->pict); > physDev->xrender->pict = 0; > } >@@ -605,11 +603,6 @@ void X11DRV_XRender_UpdateDrawable(X11DRV_PDEVICE *physDev) > pXRenderFreePicture(gdi_display, physDev->xrender->tile_pict); > physDev->xrender->tile_pict = 0; > } >- if(physDev->xrender->tile_xpm) >- { >- XFreePixmap(gdi_display, physDev->xrender->tile_xpm); >- physDev->xrender->tile_xpm = 0; >- } > > wine_tsx11_unlock(); > >@@ -1186,18 +1179,21 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag > > if(X11DRV_XRender_Installed) { > /* Create a 1x1 pixmap to tile over the font mask */ >- if(!physDev->xrender->tile_xpm) { >+ if(!physDev->xrender->tile_pict) { > XRenderPictureAttributes pa; >+ Pixmap xpm; > > XRenderPictFormat *format = (physDev->depth == 1) ? mono_format : screen_format; > wine_tsx11_lock(); >- physDev->xrender->tile_xpm = XCreatePixmap(gdi_display, >- physDev->drawable, >- 1, 1, >- format->depth); >+ >+ /* The pixmap will be freed with XRenderFreePicture */ >+ xpm = XCreatePixmap(gdi_display, >+ physDev->drawable, >+ 1, 1, >+ format->depth); > pa.repeat = True; > physDev->xrender->tile_pict = pXRenderCreatePicture(gdi_display, >- physDev->xrender->tile_xpm, >+ xpm, > format, > CPRepeat, &pa); > wine_tsx11_unlock(); >--
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 176801
:
117946
| 117947