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
7a6ea919
Commit
7a6ea919
authored
Jun 24, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Jun 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle dmScale.
parent
22ae3bd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
init.c
dlls/wineps/init.c
+8
-5
No files found.
dlls/wineps/init.c
View file @
7a6ea919
...
...
@@ -318,7 +318,6 @@ HDC PSDRV_ResetDC( PSDRV_PDEVICE *physDev, const DEVMODEA *lpInitData )
return
physDev
->
hdc
;
}
/***********************************************************************
* GetDeviceCaps (WINEPS.@)
*/
...
...
@@ -331,9 +330,11 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
case
TECHNOLOGY
:
return
DT_RASPRINTER
;
case
HORZSIZE
:
return
physDev
->
horzSize
;
return
MulDiv
(
physDev
->
horzSize
,
100
,
physDev
->
Devmode
->
dmPublic
.
dmScale
);
case
VERTSIZE
:
return
physDev
->
vertSize
;
return
MulDiv
(
physDev
->
vertSize
,
100
,
physDev
->
Devmode
->
dmPublic
.
dmScale
);
case
HORZRES
:
return
physDev
->
horzRes
;
case
VERTRES
:
...
...
@@ -379,9 +380,11 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
return
(
int
)
hypot
(
(
double
)
physDev
->
pi
->
ppd
->
DefaultResolution
,
(
double
)
physDev
->
pi
->
ppd
->
DefaultResolution
);
case
LOGPIXELSX
:
return
physDev
->
logPixelsX
;
return
MulDiv
(
physDev
->
logPixelsX
,
physDev
->
Devmode
->
dmPublic
.
dmScale
,
100
);
case
LOGPIXELSY
:
return
physDev
->
logPixelsY
;
return
MulDiv
(
physDev
->
logPixelsY
,
physDev
->
Devmode
->
dmPublic
.
dmScale
,
100
);
case
SIZEPALETTE
:
return
0
;
case
NUMRESERVED
:
...
...
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