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
53806917
Commit
53806917
authored
Oct 02, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Refuse to set the pixel format for HWND_MESSAGE windows.
parent
43a178fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
opengl.c
dlls/winex11.drv/opengl.c
+9
-4
No files found.
dlls/winex11.drv/opengl.c
View file @
53806917
...
...
@@ -1196,6 +1196,7 @@ static void free_gl_drawable( struct gl_drawable *gl )
*/
BOOL
set_win_format
(
HWND
hwnd
,
XID
fbconfig_id
)
{
HWND
parent
=
GetAncestor
(
hwnd
,
GA_PARENT
);
XSetWindowAttributes
attrib
;
struct
gl_drawable
*
gl
,
*
prev
;
int
format
;
...
...
@@ -1215,9 +1216,9 @@ BOOL set_win_format( HWND hwnd, XID fbconfig_id )
gl
->
rect
.
right
=
min
(
max
(
1
,
gl
->
rect
.
right
),
65535
);
gl
->
rect
.
bottom
=
min
(
max
(
1
,
gl
->
rect
.
bottom
),
65535
);
if
(
GetAncestor
(
hwnd
,
GA_PARENT
)
==
GetDesktopWindow
())
/* top-level window */
if
(
parent
==
GetDesktopWindow
())
/* top-level window */
{
Window
parent
=
X11DRV_get_whole_window
(
hwnd
);
Window
x
parent
=
X11DRV_get_whole_window
(
hwnd
);
gl
->
type
=
DC_GL_WINDOW
;
gl
->
colormap
=
XCreateColormap
(
gdi_display
,
root_window
,
gl
->
visual
->
visual
,
...
...
@@ -1230,8 +1231,8 @@ BOOL set_win_format( HWND hwnd, XID fbconfig_id )
attrib
.
backing_store
=
NotUseful
;
/* put the initial rect outside of the window, it will be moved into place by SetWindowPos */
OffsetRect
(
&
gl
->
rect
,
gl
->
rect
.
right
,
gl
->
rect
.
bottom
);
if
(
parent
)
gl
->
drawable
=
XCreateWindow
(
gdi_display
,
parent
,
gl
->
rect
.
left
,
gl
->
rect
.
top
,
if
(
x
parent
)
gl
->
drawable
=
XCreateWindow
(
gdi_display
,
x
parent
,
gl
->
rect
.
left
,
gl
->
rect
.
top
,
gl
->
rect
.
right
-
gl
->
rect
.
left
,
gl
->
rect
.
bottom
-
gl
->
rect
.
top
,
0
,
default_visual
.
depth
,
InputOutput
,
gl
->
visual
->
visual
,
CWBitGravity
|
CWWinGravity
|
CWBackingStore
|
CWColormap
,
...
...
@@ -1241,6 +1242,10 @@ BOOL set_win_format( HWND hwnd, XID fbconfig_id )
else
XFreeColormap
(
gdi_display
,
gl
->
colormap
);
}
else
if
(
!
GetAncestor
(
parent
,
GA_PARENT
))
{
FIXME
(
"can't set format of HWND_MESSAGE window %p
\n
"
,
hwnd
);
}
#ifdef SONAME_LIBXCOMPOSITE
else
if
(
usexcomposite
)
{
...
...
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