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
6bb001da
Commit
6bb001da
authored
Oct 18, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add support for pushing a font driver on the DC driver stack.
parent
764d3d6a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
dc.c
dlls/gdi32/dc.c
+6
-0
driver.c
dlls/gdi32/driver.c
+2
-0
gdi_private.h
dlls/gdi32/gdi_private.h
+1
-0
No files found.
dlls/gdi32/dc.c
View file @
6bb001da
...
...
@@ -154,6 +154,12 @@ DC *alloc_dc_ptr( WORD magic )
return
NULL
;
}
dc
->
nulldrv
.
hdc
=
dc
->
hSelf
;
if
(
font_driver
&&
!
font_driver
->
pCreateDC
(
&
dc
->
physDev
,
NULL
,
NULL
,
NULL
,
NULL
))
{
free_dc_ptr
(
dc
);
return
NULL
;
}
return
dc
;
}
...
...
dlls/gdi32/driver.c
View file @
6bb001da
...
...
@@ -49,6 +49,8 @@ struct graphics_driver
static
struct
list
drivers
=
LIST_INIT
(
drivers
);
static
struct
graphics_driver
*
display_driver
;
const
struct
gdi_dc_funcs
*
font_driver
=
NULL
;
static
CRITICAL_SECTION
driver_section
;
static
CRITICAL_SECTION_DEBUG
critsect_debug
=
{
...
...
dlls/gdi32/gdi_private.h
View file @
6bb001da
...
...
@@ -270,6 +270,7 @@ extern DWORD blend_bitmapinfo( const BITMAPINFO *src_info, void *src_bits, struc
/* driver.c */
extern
const
struct
gdi_dc_funcs
null_driver
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
dib_driver
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
*
font_driver
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
*
DRIVER_load_driver
(
LPCWSTR
name
)
DECLSPEC_HIDDEN
;
extern
BOOL
DRIVER_GetDriverName
(
LPCWSTR
device
,
LPWSTR
driver
,
DWORD
size
)
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