Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
28721d69
Commit
28721d69
authored
Oct 02, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Get rid of the OpenGL GDI driver.
parent
05fe1e4e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
init.c
dlls/winex11.drv/init.c
+16
-5
opengl.c
dlls/winex11.drv/opengl.c
+0
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-1
No files found.
dlls/winex11.drv/init.c
View file @
28721d69
...
...
@@ -123,7 +123,6 @@ static X11DRV_PDEVICE *create_x11_physdev( Drawable drawable )
static
BOOL
X11DRV_CreateDC
(
PHYSDEV
*
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
initData
)
{
const
struct
gdi_dc_funcs
*
glx_funcs
=
get_glx_driver
();
X11DRV_PDEVICE
*
physDev
=
create_x11_physdev
(
root_window
);
if
(
!
physDev
)
return
FALSE
;
...
...
@@ -134,7 +133,6 @@ static BOOL X11DRV_CreateDC( PHYSDEV *pdev, LPCWSTR driver, LPCWSTR device,
virtual_screen_rect
.
bottom
-
virtual_screen_rect
.
top
);
push_dc_driver
(
pdev
,
&
physDev
->
dev
,
&
x11drv_funcs
);
if
(
xrender_funcs
&&
!
xrender_funcs
->
pCreateDC
(
pdev
,
driver
,
device
,
output
,
initData
))
return
FALSE
;
if
(
glx_funcs
&&
!
glx_funcs
->
pCreateDC
(
pdev
,
driver
,
device
,
output
,
initData
))
return
FALSE
;
return
TRUE
;
}
...
...
@@ -144,7 +142,6 @@ static BOOL X11DRV_CreateDC( PHYSDEV *pdev, LPCWSTR driver, LPCWSTR device,
*/
static
BOOL
X11DRV_CreateCompatibleDC
(
PHYSDEV
orig
,
PHYSDEV
*
pdev
)
{
const
struct
gdi_dc_funcs
*
glx_funcs
=
get_glx_driver
();
X11DRV_PDEVICE
*
physDev
=
create_x11_physdev
(
stock_bitmap_pixmap
);
if
(
!
physDev
)
return
FALSE
;
...
...
@@ -154,7 +151,6 @@ static BOOL X11DRV_CreateCompatibleDC( PHYSDEV orig, PHYSDEV *pdev )
push_dc_driver
(
pdev
,
&
physDev
->
dev
,
&
x11drv_funcs
);
if
(
orig
)
return
TRUE
;
/* we already went through Xrender if we have an orig device */
if
(
xrender_funcs
&&
!
xrender_funcs
->
pCreateCompatibleDC
(
NULL
,
pdev
))
return
FALSE
;
if
(
glx_funcs
&&
!
glx_funcs
->
pCreateCompatibleDC
(
NULL
,
pdev
))
return
FALSE
;
return
TRUE
;
}
...
...
@@ -432,6 +428,21 @@ static INT X11DRV_ExtEscape( PHYSDEV dev, INT escape, INT in_count, LPCVOID in_d
return
0
;
}
/**********************************************************************
* X11DRV_wine_get_wgl_driver
*/
static
struct
opengl_funcs
*
X11DRV_wine_get_wgl_driver
(
PHYSDEV
dev
,
UINT
version
)
{
struct
opengl_funcs
*
ret
;
if
(
!
(
ret
=
get_glx_driver
(
version
)))
{
dev
=
GET_NEXT_PHYSDEV
(
dev
,
wine_get_wgl_driver
);
ret
=
dev
->
funcs
->
wine_get_wgl_driver
(
dev
,
version
);
}
return
ret
;
}
static
const
struct
gdi_dc_funcs
x11drv_funcs
=
{
...
...
@@ -561,7 +572,7 @@ static const struct gdi_dc_funcs x11drv_funcs =
NULL
,
/* pStrokePath */
X11DRV_UnrealizePalette
,
/* pUnrealizePalette */
NULL
,
/* pWidenPath */
NULL
,
/* wine_get_wgl_driver */
X11DRV_wine_get_wgl_driver
,
/* wine_get_wgl_driver */
GDI_PRIORITY_GRAPHICS_DRV
/* priority */
};
...
...
dlls/winex11.drv/opengl.c
View file @
28721d69
This diff is collapsed.
Click to expand it.
dlls/winex11.drv/x11drv.h
View file @
28721d69
...
...
@@ -214,7 +214,7 @@ extern int client_side_antialias_with_core DECLSPEC_HIDDEN;
extern
int
client_side_antialias_with_render
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
*
X11DRV_XRender_Init
(
void
)
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
*
get_glx_driver
(
void
)
DECLSPEC_HIDDEN
;
extern
struct
opengl_funcs
*
get_glx_driver
(
UINT
)
DECLSPEC_HIDDEN
;
/* IME support */
extern
void
IME_SetOpenStatus
(
BOOL
fOpen
)
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