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
a39659fc
Commit
a39659fc
authored
Sep 10, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Disable client-side rendering for OpenGL windows.
parent
2b573926
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
opengl.c
dlls/winex11.drv/opengl.c
+14
-0
window.c
dlls/winex11.drv/window.c
+1
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
No files found.
dlls/winex11.drv/opengl.c
View file @
a39659fc
...
...
@@ -1135,6 +1135,15 @@ static void release_gl_drawable( struct gl_drawable *gl )
if
(
gl
)
LeaveCriticalSection
(
&
context_section
);
}
BOOL
has_gl_drawable
(
HWND
hwnd
)
{
struct
gl_drawable
*
gl
;
gl
=
get_gl_drawable
(
hwnd
,
0
);
release_gl_drawable
(
gl
);
return
gl
!=
NULL
;
}
static
GLXContext
create_glxcontext
(
Display
*
display
,
struct
wgl_context
*
context
,
GLXContext
shareList
)
{
GLXContext
ctx
;
...
...
@@ -3342,6 +3351,11 @@ BOOL set_win_format( HWND hwnd, XID fbconfig_id )
return
FALSE
;
}
BOOL
has_gl_drawable
(
HWND
hwnd
)
{
return
FALSE
;
}
void
sync_gl_drawable
(
HWND
hwnd
,
const
RECT
*
visible_rect
,
const
RECT
*
client_rect
)
{
}
...
...
dlls/winex11.drv/window.c
View file @
a39659fc
...
...
@@ -2051,6 +2051,7 @@ void CDECL X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flag
if
(
!
data
->
whole_window
)
return
;
if
(
swp_flags
&
SWP_HIDEWINDOW
)
return
;
if
(
data
->
whole_window
==
root_window
)
return
;
if
(
has_gl_drawable
(
hwnd
))
return
;
if
(
!
client_side_graphics
)
return
;
surface_rect
=
get_surface_rect
(
visible_rect
);
...
...
dlls/winex11.drv/x11drv.h
View file @
a39659fc
...
...
@@ -558,6 +558,7 @@ extern Window X11DRV_get_whole_window( HWND hwnd ) DECLSPEC_HIDDEN;
extern
XIC
X11DRV_get_ic
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
set_win_format
(
HWND
hwnd
,
XID
fbconfig_id
)
DECLSPEC_HIDDEN
;
extern
BOOL
has_gl_drawable
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
sync_gl_drawable
(
HWND
hwnd
,
const
RECT
*
visible_rect
,
const
RECT
*
client_rect
)
DECLSPEC_HIDDEN
;
extern
void
destroy_gl_drawable
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
...
...
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