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
671b977d
Commit
671b977d
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: Return ASPECTX/Y which represent current device resolution.
parent
0cfc1c84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
init.c
dlls/wineps.drv/init.c
+4
-5
No files found.
dlls/wineps.drv/init.c
View file @
671b977d
...
...
@@ -421,14 +421,13 @@ static INT PSDRV_GetDeviceCaps( PHYSDEV dev, INT cap )
case
RASTERCAPS
:
return
(
RC_BITBLT
|
RC_BITMAP64
|
RC_GDI20_OUTPUT
|
RC_DIBTODEV
|
RC_STRETCHBLT
|
RC_STRETCHDIB
);
/* psdrv 0x6e99 */
/* Are aspect[XY] and logPixels[XY] correct? */
/* Need to handle different res in x and y => fix ppd */
case
ASPECTX
:
return
physDev
->
logPixelsX
;
case
ASPECTY
:
return
physDev
->
pi
->
ppd
->
DefaultResolution
;
return
physDev
->
logPixelsY
;
case
ASPECTXY
:
return
(
int
)
hypot
(
(
double
)
physDev
->
pi
->
ppd
->
DefaultResolution
,
(
double
)
physDev
->
pi
->
ppd
->
DefaultResolution
);
return
(
int
)
hypot
(
(
double
)
physDev
->
logPixelsX
,
(
double
)
physDev
->
logPixelsY
);
case
LOGPIXELSX
:
return
MulDiv
(
physDev
->
logPixelsX
,
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmScale
,
100
);
...
...
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