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
d6332e0e
Commit
d6332e0e
authored
Jan 26, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use the correct colormap for the OpenGL parent window.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f54a6617
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
opengl.c
dlls/winex11.drv/opengl.c
+5
-2
No files found.
dlls/winex11.drv/opengl.c
View file @
d6332e0e
...
...
@@ -1370,10 +1370,13 @@ static BOOL create_gl_drawable( HWND hwnd, struct gl_drawable *gl )
XSetWindowAttributes
attrib
;
attrib
.
override_redirect
=
True
;
attrib
.
border_pixel
=
0
;
if
(
!
dummy_parent
)
{
attrib
.
colormap
=
default_colormap
;
dummy_parent
=
XCreateWindow
(
gdi_display
,
root_window
,
-
1
,
-
1
,
1
,
1
,
0
,
default_visual
.
depth
,
InputOutput
,
default_visual
.
visual
,
CWOverrideRedirect
,
&
attrib
);
InputOutput
,
default_visual
.
visual
,
CWColormap
|
CWBorderPixel
|
CWOverrideRedirect
,
&
attrib
);
XMapWindow
(
gdi_display
,
dummy_parent
);
}
gl
->
colormap
=
XCreateColormap
(
gdi_display
,
dummy_parent
,
gl
->
visual
->
visual
,
...
...
@@ -1388,7 +1391,7 @@ static BOOL create_gl_drawable( HWND hwnd, struct gl_drawable *gl )
gl
->
window
=
XCreateWindow
(
gdi_display
,
dummy_parent
,
0
,
0
,
gl
->
rect
.
right
-
gl
->
rect
.
left
,
gl
->
rect
.
bottom
-
gl
->
rect
.
top
,
0
,
gl
->
visual
->
depth
,
InputOutput
,
gl
->
visual
->
visual
,
CWColormap
|
CWOverrideRedirect
,
&
attrib
);
CWColormap
|
CW
BorderPixel
|
CW
OverrideRedirect
,
&
attrib
);
if
(
gl
->
window
)
{
gl
->
drawable
=
pglXCreateWindow
(
gdi_display
,
gl
->
format
->
fbconfig
,
gl
->
window
,
NULL
);
...
...
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