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
0cfc1c84
Commit
0cfc1c84
authored
Dec 18, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Use device resolution specified at DC creation time.
parent
1cf52561
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
init.c
dlls/wineps.drv/init.c
+13
-0
No files found.
dlls/wineps.drv/init.c
View file @
0cfc1c84
...
...
@@ -153,6 +153,19 @@ static void PSDRV_UpdateDevCaps( PSDRV_PDEVICE *physDev )
PAGESIZE
*
page
;
INT
width
=
0
,
height
=
0
;
if
(
physDev
->
Devmode
->
dmPublic
.
dmFields
&
DM_PRINTQUALITY
)
{
physDev
->
logPixelsX
=
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmPrintQuality
;
physDev
->
logPixelsY
=
physDev
->
logPixelsX
;
}
else
{
physDev
->
logPixelsX
=
physDev
->
pi
->
ppd
->
DefaultResolution
;
physDev
->
logPixelsY
=
physDev
->
logPixelsX
;
}
if
(
physDev
->
Devmode
->
dmPublic
.
dmFields
&
DM_YRESOLUTION
)
physDev
->
logPixelsY
=
physDev
->
Devmode
->
dmPublic
.
dmYResolution
;
if
(
physDev
->
Devmode
->
dmPublic
.
dmFields
&
DM_PAPERSIZE
)
{
LIST_FOR_EACH_ENTRY
(
page
,
&
physDev
->
pi
->
ppd
->
PageSizes
,
PAGESIZE
,
entry
)
{
if
(
page
->
WinPage
==
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmPaperSize
)
...
...
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