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
dd26e02c
Commit
dd26e02c
authored
Aug 22, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Fall back to the null driver for common device caps.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9ea33ed0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
33 deletions
+2
-33
init.c
dlls/wineps.drv/init.c
+2
-33
No files found.
dlls/wineps.drv/init.c
View file @
dd26e02c
...
...
@@ -486,42 +486,23 @@ static INT PSDRV_GetDeviceCaps( PHYSDEV dev, INT cap )
return
MulDiv
(
physDev
->
vertSize
,
100
,
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmScale
);
case
HORZRES
:
case
DESKTOPHORZRES
:
return
physDev
->
horzRes
;
case
VERTRES
:
case
DESKTOPVERTRES
:
return
physDev
->
vertRes
;
case
BITSPIXEL
:
/* Although Windows returns 1 for monochrome printers, we want
CreateCompatibleBitmap to provide something other than 1 bpp */
return
32
;
case
PLANES
:
return
1
;
case
NUMBRUSHES
:
return
-
1
;
case
NUMPENS
:
return
10
;
case
NUMMARKERS
:
return
0
;
case
NUMFONTS
:
return
39
;
case
NUMCOLORS
:
return
-
1
;
case
PDEVICESIZE
:
return
sizeof
(
PSDRV_PDEVICE
);
case
CURVECAPS
:
return
(
CC_CIRCLES
|
CC_PIE
|
CC_CHORD
|
CC_ELLIPSES
|
CC_WIDE
|
CC_STYLED
|
CC_WIDESTYLED
|
CC_INTERIORS
|
CC_ROUNDRECT
);
case
LINECAPS
:
return
(
LC_POLYLINE
|
LC_MARKER
|
LC_POLYMARKER
|
LC_WIDE
|
LC_STYLED
|
LC_WIDESTYLED
|
LC_INTERIORS
);
case
POLYGONALCAPS
:
return
(
PC_POLYGON
|
PC_RECTANGLE
|
PC_WINDPOLYGON
|
PC_SCANLINE
|
PC_WIDE
|
PC_STYLED
|
PC_WIDESTYLED
|
PC_INTERIORS
);
case
TEXTCAPS
:
return
TC_CR_ANY
|
TC_VA_ABLE
;
/* psdrv 0x59f7 */
case
CLIPCAPS
:
return
CP_RECTANGLE
;
case
RASTERCAPS
:
return
(
RC_BITBLT
|
RC_BITMAP64
|
RC_GDI20_OUTPUT
|
RC_DIBTODEV
|
RC_STRETCHBLT
|
RC_STRETCHDIB
);
/* psdrv 0x6e99 */
...
...
@@ -529,17 +510,12 @@ static INT PSDRV_GetDeviceCaps( PHYSDEV dev, INT cap )
return
physDev
->
logPixelsX
;
case
ASPECTY
:
return
physDev
->
logPixelsY
;
case
ASPECTXY
:
return
(
int
)
hypot
(
(
double
)
physDev
->
logPixelsX
,
(
double
)
physDev
->
logPixelsY
);
case
LOGPIXELSX
:
return
MulDiv
(
physDev
->
logPixelsX
,
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmScale
,
100
);
case
LOGPIXELSY
:
return
MulDiv
(
physDev
->
logPixelsY
,
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmScale
,
100
);
case
SIZEPALETTE
:
return
0
;
case
NUMRESERVED
:
return
0
;
case
COLORRES
:
...
...
@@ -568,16 +544,9 @@ static INT PSDRV_GetDeviceCaps( PHYSDEV dev, INT cap )
}
return
physDev
->
PageSize
.
cy
-
physDev
->
ImageableArea
.
top
;
case
SCALINGFACTORX
:
case
SCALINGFACTORY
:
case
VREFRESH
:
case
BLTALIGNMENT
:
return
0
;
case
SHADEBLENDCAPS
:
return
SB_NONE
;
default:
FIXME
(
"(%p): unsupported capability %d, will return 0
\n
"
,
dev
->
hdc
,
cap
);
return
0
;
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pGetDeviceCaps
);
return
dev
->
funcs
->
pGetDeviceCaps
(
dev
,
cap
)
;
}
}
...
...
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