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
809166de
Commit
809166de
authored
Mar 31, 2014
by
Ken Thomases
Committed by
Alexandre Julliard
Apr 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove set-but-never-read hwnd and fbconfig_id fields of struct…
winex11: Remove set-but-never-read hwnd and fbconfig_id fields of struct x11drv_escape_set_drawable.
parent
4325ecdc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
opengl.c
dlls/winex11.drv/opengl.c
+0
-2
window.c
dlls/winex11.drv/window.c
+2
-6
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-2
No files found.
dlls/winex11.drv/opengl.c
View file @
809166de
...
@@ -2323,11 +2323,9 @@ static HDC X11DRV_wglGetPbufferDCARB( struct wgl_pbuffer *object )
...
@@ -2323,11 +2323,9 @@ static HDC X11DRV_wglGetPbufferDCARB( struct wgl_pbuffer *object )
LeaveCriticalSection
(
&
context_section
);
LeaveCriticalSection
(
&
context_section
);
escape
.
code
=
X11DRV_SET_DRAWABLE
;
escape
.
code
=
X11DRV_SET_DRAWABLE
;
escape
.
hwnd
=
0
;
escape
.
drawable
=
object
->
drawable
;
escape
.
drawable
=
object
->
drawable
;
escape
.
mode
=
IncludeInferiors
;
escape
.
mode
=
IncludeInferiors
;
SetRect
(
&
escape
.
dc_rect
,
0
,
0
,
object
->
width
,
object
->
height
);
SetRect
(
&
escape
.
dc_rect
,
0
,
0
,
object
->
width
,
object
->
height
);
escape
.
fbconfig_id
=
object
->
fmt
->
fmt_id
;
ExtEscape
(
hdc
,
X11DRV_ESCAPE
,
sizeof
(
escape
),
(
LPSTR
)
&
escape
,
0
,
NULL
);
ExtEscape
(
hdc
,
X11DRV_ESCAPE
,
sizeof
(
escape
),
(
LPSTR
)
&
escape
,
0
,
NULL
);
TRACE
(
"(%p)->(%p)
\n
"
,
object
,
hdc
);
TRACE
(
"(%p)->(%p)
\n
"
,
object
,
hdc
);
...
...
dlls/winex11.drv/window.c
View file @
809166de
...
@@ -1970,10 +1970,8 @@ void CDECL X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
...
@@ -1970,10 +1970,8 @@ void CDECL X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
struct
x11drv_escape_set_drawable
escape
;
struct
x11drv_escape_set_drawable
escape
;
HWND
parent
;
HWND
parent
;
escape
.
code
=
X11DRV_SET_DRAWABLE
;
escape
.
code
=
X11DRV_SET_DRAWABLE
;
escape
.
hwnd
=
hwnd
;
escape
.
mode
=
IncludeInferiors
;
escape
.
mode
=
IncludeInferiors
;
escape
.
fbconfig_id
=
0
;
escape
.
dc_rect
.
left
=
win_rect
->
left
-
top_rect
->
left
;
escape
.
dc_rect
.
left
=
win_rect
->
left
-
top_rect
->
left
;
escape
.
dc_rect
.
top
=
win_rect
->
top
-
top_rect
->
top
;
escape
.
dc_rect
.
top
=
win_rect
->
top
-
top_rect
->
top
;
...
@@ -2019,12 +2017,10 @@ void CDECL X11DRV_ReleaseDC( HWND hwnd, HDC hdc )
...
@@ -2019,12 +2017,10 @@ void CDECL X11DRV_ReleaseDC( HWND hwnd, HDC hdc )
struct
x11drv_escape_set_drawable
escape
;
struct
x11drv_escape_set_drawable
escape
;
escape
.
code
=
X11DRV_SET_DRAWABLE
;
escape
.
code
=
X11DRV_SET_DRAWABLE
;
escape
.
hwnd
=
GetDesktopWindow
();
escape
.
drawable
=
root_window
;
escape
.
drawable
=
root_window
;
escape
.
mode
=
IncludeInferiors
;
escape
.
mode
=
IncludeInferiors
;
escape
.
dc_rect
=
get_virtual_screen_rect
();
escape
.
dc_rect
=
get_virtual_screen_rect
();
OffsetRect
(
&
escape
.
dc_rect
,
-
2
*
escape
.
dc_rect
.
left
,
-
2
*
escape
.
dc_rect
.
top
);
OffsetRect
(
&
escape
.
dc_rect
,
-
2
*
escape
.
dc_rect
.
left
,
-
2
*
escape
.
dc_rect
.
top
);
escape
.
fbconfig_id
=
0
;
ExtEscape
(
hdc
,
X11DRV_ESCAPE
,
sizeof
(
escape
),
(
LPSTR
)
&
escape
,
0
,
NULL
);
ExtEscape
(
hdc
,
X11DRV_ESCAPE
,
sizeof
(
escape
),
(
LPSTR
)
&
escape
,
0
,
NULL
);
}
}
...
...
dlls/winex11.drv/x11drv.h
View file @
809166de
...
@@ -283,11 +283,9 @@ enum x11drv_escape_codes
...
@@ -283,11 +283,9 @@ enum x11drv_escape_codes
struct
x11drv_escape_set_drawable
struct
x11drv_escape_set_drawable
{
{
enum
x11drv_escape_codes
code
;
/* escape code (X11DRV_SET_DRAWABLE) */
enum
x11drv_escape_codes
code
;
/* escape code (X11DRV_SET_DRAWABLE) */
HWND
hwnd
;
/* window for this drawable */
Drawable
drawable
;
/* X drawable */
Drawable
drawable
;
/* X drawable */
int
mode
;
/* ClipByChildren or IncludeInferiors */
int
mode
;
/* ClipByChildren or IncludeInferiors */
RECT
dc_rect
;
/* DC rectangle relative to drawable */
RECT
dc_rect
;
/* DC rectangle relative to drawable */
XID
fbconfig_id
;
/* fbconfig id used by the GL drawable */
};
};
struct
x11drv_escape_get_drawable
struct
x11drv_escape_get_drawable
...
...
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