Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
13c0c0d0
Commit
13c0c0d0
authored
Mar 29, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Mar 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Delete the tile pixmap whenever the drawable is changed.
parent
232c16fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
19 deletions
+21
-19
xrender.c
dlls/winex11.drv/xrender.c
+21
-19
No files found.
dlls/winex11.drv/xrender.c
View file @
13c0c0d0
...
@@ -571,18 +571,7 @@ BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE *physDev, HFONT hfont)
...
@@ -571,18 +571,7 @@ BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE *physDev, HFONT hfont)
*/
*/
void
X11DRV_XRender_DeleteDC
(
X11DRV_PDEVICE
*
physDev
)
void
X11DRV_XRender_DeleteDC
(
X11DRV_PDEVICE
*
physDev
)
{
{
wine_tsx11_lock
();
X11DRV_XRender_UpdateDrawable
(
physDev
);
if
(
physDev
->
xrender
->
tile_pict
)
pXRenderFreePicture
(
gdi_display
,
physDev
->
xrender
->
tile_pict
);
if
(
physDev
->
xrender
->
tile_xpm
)
XFreePixmap
(
gdi_display
,
physDev
->
xrender
->
tile_xpm
);
if
(
physDev
->
xrender
->
pict
)
{
TRACE
(
"freeing pict = %lx dc = %p
\n
"
,
physDev
->
xrender
->
pict
,
physDev
->
hdc
);
pXRenderFreePicture
(
gdi_display
,
physDev
->
xrender
->
pict
);
}
wine_tsx11_unlock
();
EnterCriticalSection
(
&
xrender_cs
);
EnterCriticalSection
(
&
xrender_cs
);
if
(
physDev
->
xrender
->
cache_index
!=
-
1
)
if
(
physDev
->
xrender
->
cache_index
!=
-
1
)
...
@@ -598,19 +587,32 @@ void X11DRV_XRender_DeleteDC(X11DRV_PDEVICE *physDev)
...
@@ -598,19 +587,32 @@ void X11DRV_XRender_DeleteDC(X11DRV_PDEVICE *physDev)
* X11DRV_XRender_UpdateDrawable
* X11DRV_XRender_UpdateDrawable
*
*
* This gets called from X11DRV_SetDrawable and X11DRV_SelectBitmap.
* This gets called from X11DRV_SetDrawable and X11DRV_SelectBitmap.
* It deletes the pict when the drawable changes.
* It deletes the pict
and tile
when the drawable changes.
*/
*/
void
X11DRV_XRender_UpdateDrawable
(
X11DRV_PDEVICE
*
physDev
)
void
X11DRV_XRender_UpdateDrawable
(
X11DRV_PDEVICE
*
physDev
)
{
{
if
(
physDev
->
xrender
->
pict
)
{
wine_tsx11_lock
();
TRACE
(
"freeing pict %08lx from dc %p drawable %08lx
\n
"
,
physDev
->
xrender
->
pict
,
physDev
->
hdc
,
physDev
->
drawable
);
if
(
physDev
->
xrender
->
pict
)
wine_tsx11_lock
();
{
TRACE
(
"freeing pict = %lx dc = %p
\n
"
,
physDev
->
xrender
->
pict
,
physDev
->
hdc
);
XFlush
(
gdi_display
);
XFlush
(
gdi_display
);
pXRenderFreePicture
(
gdi_display
,
physDev
->
xrender
->
pict
);
pXRenderFreePicture
(
gdi_display
,
physDev
->
xrender
->
pict
);
wine_tsx11_unlock
()
;
physDev
->
xrender
->
pict
=
0
;
}
}
physDev
->
xrender
->
pict
=
0
;
if
(
physDev
->
xrender
->
tile_pict
)
{
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
();
return
;
return
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment