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
041c489a
Commit
041c489a
authored
Aug 24, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When possible, use the X window of the requested window in GetDC
instead of the parent to avoid trouble with OpenGL clipping.
parent
d149d3cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
winpos.c
dlls/x11drv/winpos.c
+8
-3
No files found.
dlls/x11drv/winpos.c
View file @
041c489a
...
...
@@ -416,19 +416,24 @@ BOOL X11DRV_GetDC( HWND hwnd, HDC hdc, HRGN hrgn, DWORD flags )
if
(
top
!=
hwnd
)
{
escape
.
org
.
x
=
escape
.
org
.
y
=
0
;
escape
.
drawable_org
.
x
=
escape
.
drawable_
org
.
y
=
0
;
if
(
flags
&
DCX_WINDOW
)
{
escape
.
org
.
x
=
win
->
rectWindow
.
left
-
win
->
rectClient
.
left
;
escape
.
org
.
y
=
win
->
rectWindow
.
top
-
win
->
rectClient
.
top
;
}
MapWindowPoints
(
hwnd
,
top
,
&
escape
.
org
,
1
);
escape
.
drawable_org
.
x
=
escape
.
drawable_org
.
y
=
0
;
MapWindowPoints
(
top
,
0
,
&
escape
.
drawable_org
,
1
);
escape
.
drawable
=
X11DRV_get_client_window
(
top
);
}
else
{
escape
.
org
.
x
=
escape
.
org
.
y
=
0
;
MapWindowPoints
(
hwnd
,
0
,
&
escape
.
drawable_org
,
1
);
escape
.
drawable
=
X11DRV_get_client_window
(
hwnd
);
}
}
else
{
if
(
IsIconic
(
hwnd
))
{
escape
.
drawable
=
data
->
icon_window
?
data
->
icon_window
:
data
->
whole_window
;
...
...
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