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
4216179e
Commit
4216179e
authored
Apr 24, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Fix default device font selection.
parent
8f5aece0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
init.c
dlls/wineps.drv/init.c
+1
-1
printproc.c
dlls/wineps.drv/printproc.c
+2
-0
psdrv.h
dlls/wineps.drv/psdrv.h
+1
-0
No files found.
dlls/wineps.drv/init.c
View file @
4216179e
...
...
@@ -92,7 +92,7 @@ static const PSDRV_DEVMODE DefaultDevmode =
HINSTANCE
PSDRV_hInstance
=
0
;
HANDLE
PSDRV_Heap
=
0
;
static
HFONT
PSDRV_DefaultFont
=
0
;
HFONT
PSDRV_DefaultFont
=
0
;
static
const
LOGFONTA
DefaultLogFont
=
{
100
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
ANSI_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
FIXED_PITCH
|
FF_MODERN
,
""
...
...
dlls/wineps.drv/printproc.c
View file @
4216179e
...
...
@@ -1134,6 +1134,8 @@ static HGDIOBJ get_object_handle(struct pp_data *data, HANDLETABLE *handletable,
if
(
i
&
0x80000000
)
{
*
pattern
=
NULL
;
if
((
i
&
0x7fffffff
)
==
DEVICE_DEFAULT_FONT
)
return
PSDRV_DefaultFont
;
return
GetStockObject
(
i
&
0x7fffffff
);
}
*
pattern
=
data
->
patterns
+
i
;
...
...
dlls/wineps.drv/psdrv.h
View file @
4216179e
...
...
@@ -417,6 +417,7 @@ extern const UNICODEGLYPH PSDRV_AGLbyUV[] DECLSPEC_HIDDEN; /* duplicates inc
extern
HINSTANCE
PSDRV_hInstance
DECLSPEC_HIDDEN
;
extern
HANDLE
PSDRV_Heap
DECLSPEC_HIDDEN
;
extern
char
*
PSDRV_ANSIVector
[
256
]
DECLSPEC_HIDDEN
;
extern
HFONT
PSDRV_DefaultFont
DECLSPEC_HIDDEN
;
extern
INPUTSLOT
*
find_slot
(
PPD
*
ppd
,
const
PSDRV_DEVMODE
*
dm
)
DECLSPEC_HIDDEN
;
extern
PAGESIZE
*
find_pagesize
(
PPD
*
ppd
,
const
PSDRV_DEVMODE
*
dm
)
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