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
9e95b9e6
Commit
9e95b9e6
authored
May 06, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
May 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Change initial printer font to DEVICE_DEFAULT_FONT.
parent
afaf6786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
init.c
dlls/wineps.drv/init.c
+1
-14
No files found.
dlls/wineps.drv/init.c
View file @
9e95b9e6
...
@@ -93,12 +93,6 @@ static const PSDRV_DEVMODE DefaultDevmode =
...
@@ -93,12 +93,6 @@ static const PSDRV_DEVMODE DefaultDevmode =
HINSTANCE
PSDRV_hInstance
=
0
;
HINSTANCE
PSDRV_hInstance
=
0
;
HANDLE
PSDRV_Heap
=
0
;
HANDLE
PSDRV_Heap
=
0
;
static
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
,
""
};
static
struct
gdi_dc_funcs
psdrv_funcs
;
static
struct
gdi_dc_funcs
psdrv_funcs
;
/*********************************************************************
/*********************************************************************
...
@@ -134,18 +128,11 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
...
@@ -134,18 +128,11 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
HeapDestroy
(
PSDRV_Heap
);
HeapDestroy
(
PSDRV_Heap
);
return
FALSE
;
return
FALSE
;
}
}
PSDRV_DefaultFont
=
CreateFontIndirectA
(
&
DefaultLogFont
);
if
(
PSDRV_DefaultFont
==
NULL
)
{
HeapDestroy
(
PSDRV_Heap
);
return
FALSE
;
}
break
;
break
;
}
}
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
if
(
reserved
)
break
;
if
(
reserved
)
break
;
DeleteObject
(
PSDRV_DefaultFont
);
HeapDestroy
(
PSDRV_Heap
);
HeapDestroy
(
PSDRV_Heap
);
break
;
break
;
}
}
...
@@ -391,7 +378,7 @@ PSDRV_PDEVICE *create_psdrv_physdev( HDC hdc, const WCHAR *device,
...
@@ -391,7 +378,7 @@ PSDRV_PDEVICE *create_psdrv_physdev( HDC hdc, const WCHAR *device,
}
}
PSDRV_UpdateDevCaps
(
pdev
);
PSDRV_UpdateDevCaps
(
pdev
);
SelectObject
(
hdc
,
PSDRV_DefaultFont
);
SelectObject
(
hdc
,
GetStockObject
(
DEVICE_DEFAULT_FONT
)
);
return
pdev
;
return
pdev
;
}
}
...
...
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