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
6acd40dc
Commit
6acd40dc
authored
Jul 06, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed X11DRV_GetDC for the desktop window.
Use the client window as drawable when possible.
parent
3365eb7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
winpos.c
dlls/x11drv/winpos.c
+8
-6
No files found.
dlls/x11drv/winpos.c
View file @
6acd40dc
...
...
@@ -400,6 +400,8 @@ BOOL X11DRV_GetDC( HWND hwnd, HDC hdc, HRGN hrgn, DWORD flags )
if
(
flags
&
DCX_PARENTCLIP
)
flags
&=
~
DCX_CLIPSIBLINGS
;
top
=
GetAncestor
(
hwnd
,
GA_ROOT
);
if
(
!
top
)
top
=
GetDesktopWindow
();
if
(
top
!=
hwnd
)
{
escape
.
org
.
x
=
escape
.
org
.
y
=
0
;
...
...
@@ -422,21 +424,21 @@ BOOL X11DRV_GetDC( HWND hwnd, HDC hdc, HRGN hrgn, DWORD flags )
escape
.
org
.
y
=
0
;
escape
.
drawable_org
=
escape
.
org
;
}
else
else
if
(
flags
&
DCX_WINDOW
)
{
escape
.
drawable
=
data
->
whole_window
;
escape
.
drawable_org
.
x
=
data
->
whole_rect
.
left
;
escape
.
drawable_org
.
y
=
data
->
whole_rect
.
top
;
if
(
flags
&
DCX_WINDOW
)
{
escape
.
org
.
x
=
win
->
rectWindow
.
left
-
data
->
whole_rect
.
left
;
escape
.
org
.
y
=
win
->
rectWindow
.
top
-
data
->
whole_rect
.
top
;
}
else
{
escape
.
org
.
x
=
win
->
rectClient
.
left
-
data
->
whole_rect
.
left
;
escape
.
org
.
y
=
win
->
rectClient
.
top
-
data
->
whole_rect
.
top
;
}
escape
.
drawable
=
data
->
client_window
;
escape
.
drawable_org
.
x
=
win
->
rectClient
.
left
;
escape
.
drawable_org
.
y
=
win
->
rectClient
.
top
;
escape
.
org
.
x
=
0
;
escape
.
org
.
y
=
0
;
}
}
...
...
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