Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
649e33de
Commit
649e33de
authored
Dec 06, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Store the visible region handle directly instead of making a copy.
parent
7534d47b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
graphics.c
dlls/winex11.drv/graphics.c
+1
-1
init.c
dlls/winex11.drv/init.c
+0
-7
No files found.
dlls/winex11.drv/graphics.c
View file @
649e33de
...
...
@@ -244,7 +244,7 @@ void X11DRV_SetDeviceClipping( PHYSDEV dev, HRGN rgn )
RGNDATA
*
data
;
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
CombineRgn
(
physDev
->
region
,
rgn
,
0
,
RGN_COPY
)
;
physDev
->
region
=
rgn
;
if
((
data
=
X11DRV_GetRegionData
(
physDev
->
region
,
0
)))
update_x11_clipping
(
physDev
,
data
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
dlls/winex11.drv/init.c
View file @
649e33de
...
...
@@ -126,12 +126,6 @@ static X11DRV_PDEVICE *create_x11_physdev( Drawable drawable )
if
(
!
(
physDev
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
physDev
)
)))
return
NULL
;
if
(
!
(
physDev
->
region
=
CreateRectRgn
(
0
,
0
,
0
,
0
)))
{
HeapFree
(
GetProcessHeap
(),
0
,
physDev
);
return
NULL
;
}
wine_tsx11_lock
();
physDev
->
drawable
=
drawable
;
physDev
->
gc
=
XCreateGC
(
gdi_display
,
drawable
,
0
,
NULL
);
...
...
@@ -193,7 +187,6 @@ static BOOL X11DRV_DeleteDC( PHYSDEV dev )
{
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
DeleteObject
(
physDev
->
region
);
wine_tsx11_lock
();
XFreeGC
(
gdi_display
,
physDev
->
gc
);
wine_tsx11_unlock
();
...
...
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