Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
6bb001da
Commit
6bb001da
authored
13 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
gdi32: Add support for pushing a font driver on the DC driver stack.
parent
764d3d6a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/gdi32/dc.c
+6
-0
6 additions, 0 deletions
dlls/gdi32/dc.c
dlls/gdi32/driver.c
+2
-0
2 additions, 0 deletions
dlls/gdi32/driver.c
dlls/gdi32/gdi_private.h
+1
-0
1 addition, 0 deletions
dlls/gdi32/gdi_private.h
with
9 additions
and
0 deletions
dlls/gdi32/dc.c
+
6
−
0
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
;
}
...
...
This diff is collapsed.
Click to expand it.
dlls/gdi32/driver.c
+
2
−
0
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
=
{
...
...
This diff is collapsed.
Click to expand it.
dlls/gdi32/gdi_private.h
+
1
−
0
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment