Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155234 Details for
Bug 240954
X Error BadPixmap in X_FreePixmap
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix the BadPixmap abort
wine-pixmap.patch (text/plain), 2.49 KB, created by
Thomas Sailer
on 2007-05-23 12:53:48 UTC
(
hide
)
Description:
Patch to fix the BadPixmap abort
Filename:
MIME Type:
Creator:
Thomas Sailer
Created:
2007-05-23 12:53:48 UTC
Size:
2.49 KB
patch
obsolete
>From: Huw Davies <huw@codeweavers.com> >Date: Tue, 3 Apr 2007 17:12:32 +0100 >Subject: winex11.drv: XRenderFreePicture destroys the underlying storage, so don't free the pixmap. >To: wine-patches <wine-patches@winehq.org> > >--- > dlls/winex11.drv/xrender.c | 22 +++++++++------------- > 1 files changed, 9 insertions(+), 13 deletions(-) > >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(); >-- >1.5.0.5 > >
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 240954
: 155234