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
9675aa17
Commit
9675aa17
authored
Oct 29, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Allow user32 to specify the display driver to use.
parent
01076924
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
driver.c
dlls/gdi32/driver.c
+17
-0
gdi32.spec
dlls/gdi32/gdi32.spec
+1
-0
driver.c
dlls/user32/driver.c
+1
-0
gdi_driver.h
include/wine/gdi_driver.h
+1
-0
No files found.
dlls/gdi32/driver.c
View file @
9675aa17
...
...
@@ -223,6 +223,23 @@ HMODULE CDECL __wine_get_driver_module( HDC hdc )
}
/***********************************************************************
* __wine_set_display_driver_module (GDI32.@)
*/
void
CDECL
__wine_set_display_driver
(
HMODULE
module
)
{
struct
graphics_driver
*
driver
;
if
(
!
(
driver
=
create_driver
(
module
)))
{
ERR
(
"Could not create graphics driver
\n
"
);
ExitProcess
(
1
);
}
if
(
InterlockedCompareExchangePointer
(
(
void
**
)
&
display_driver
,
driver
,
NULL
))
HeapFree
(
GetProcessHeap
(),
0
,
driver
);
}
static
INT
nulldrv_AbortDoc
(
PHYSDEV
dev
)
{
return
0
;
...
...
dlls/gdi32/gdi32.spec
View file @
9675aa17
...
...
@@ -515,6 +515,7 @@
# Graphics drivers
@ cdecl __wine_get_driver_module(long)
@ cdecl __wine_set_display_driver(long)
# OpenGL
@ cdecl __wine_get_wgl_driver(long long)
dlls/user32/driver.c
View file @
9675aa17
...
...
@@ -158,6 +158,7 @@ static const USER_DRIVER *load_driver(void)
}
else
LdrAddRefDll
(
0
,
graphics_driver
);
__wine_set_display_driver
(
graphics_driver
);
register_builtin_classes
();
return
driver
;
...
...
include/wine/gdi_driver.h
View file @
9675aa17
...
...
@@ -277,6 +277,7 @@ extern void CDECL __wine_make_gdi_object_system( HGDIOBJ handle, BOOL set );
extern
void
CDECL
__wine_set_visible_region
(
HDC
hdc
,
HRGN
hrgn
,
const
RECT
*
vis_rect
,
const
RECT
*
device_rect
,
struct
window_surface
*
surface
);
extern
HMODULE
CDECL
__wine_get_driver_module
(
HDC
hdc
);
extern
void
CDECL
__wine_set_display_driver
(
HMODULE
module
);
extern
struct
opengl_funcs
*
CDECL
__wine_get_wgl_driver
(
HDC
hdc
,
UINT
version
);
#endif
/* __WINE_WINE_GDI_DRIVER_H */
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