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
31e6f4bc
Commit
31e6f4bc
authored
Mar 16, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a null driver entry point for GetDeviceCaps.
parent
45f191dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
+25
-21
dc.c
dlls/gdi32/dc.c
+2
-20
driver.c
dlls/gdi32/driver.c
+23
-1
No files found.
dlls/gdi32/dc.c
View file @
31e6f4bc
...
...
@@ -898,26 +898,8 @@ INT WINAPI GetDeviceCaps( HDC hdc, INT cap )
if
((
dc
=
get_dc_ptr
(
hdc
)))
{
if
(
dc
->
funcs
->
pGetDeviceCaps
)
ret
=
dc
->
funcs
->
pGetDeviceCaps
(
dc
->
physDev
,
cap
);
else
switch
(
cap
)
/* return meaningful values for some entries */
{
case
HORZRES
:
ret
=
640
;
break
;
case
VERTRES
:
ret
=
480
;
break
;
case
BITSPIXEL
:
ret
=
1
;
break
;
case
PLANES
:
ret
=
1
;
break
;
case
NUMCOLORS
:
ret
=
2
;
break
;
case
ASPECTX
:
ret
=
36
;
break
;
case
ASPECTY
:
ret
=
36
;
break
;
case
ASPECTXY
:
ret
=
51
;
break
;
case
LOGPIXELSX
:
ret
=
72
;
break
;
case
LOGPIXELSY
:
ret
=
72
;
break
;
case
SIZEPALETTE
:
ret
=
2
;
break
;
case
TEXTCAPS
:
ret
=
(
TC_OP_CHARACTER
|
TC_OP_STROKE
|
TC_CP_STROKE
|
TC_CR_ANY
|
TC_SF_X_YINDEP
|
TC_SA_DOUBLE
|
TC_SA_INTEGER
|
TC_SA_CONTIN
|
TC_UA_ABLE
|
TC_SO_ABLE
|
TC_RA_ABLE
|
TC_VA_ABLE
);
break
;
}
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pGetDeviceCaps
);
ret
=
physdev
->
funcs
->
pGetDeviceCaps
(
physdev
,
cap
);
release_dc_ptr
(
dc
);
}
return
ret
;
...
...
dlls/gdi32/driver.c
View file @
31e6f4bc
...
...
@@ -440,6 +440,28 @@ static BOOL CDECL nulldrv_GetCharWidth( PHYSDEV dev, UINT first, UINT last, INT
return
FALSE
;
}
static
INT
CDECL
nulldrv_GetDeviceCaps
(
PHYSDEV
dev
,
INT
cap
)
{
switch
(
cap
)
/* return meaningful values for some entries */
{
case
HORZRES
:
return
640
;
case
VERTRES
:
return
480
;
case
BITSPIXEL
:
return
1
;
case
PLANES
:
return
1
;
case
NUMCOLORS
:
return
2
;
case
ASPECTX
:
return
36
;
case
ASPECTY
:
return
36
;
case
ASPECTXY
:
return
51
;
case
LOGPIXELSX
:
return
72
;
case
LOGPIXELSY
:
return
72
;
case
SIZEPALETTE
:
return
2
;
case
TEXTCAPS
:
return
(
TC_OP_CHARACTER
|
TC_OP_STROKE
|
TC_CP_STROKE
|
TC_CR_ANY
|
TC_SF_X_YINDEP
|
TC_SA_DOUBLE
|
TC_SA_INTEGER
|
TC_SA_CONTIN
|
TC_UA_ABLE
|
TC_SO_ABLE
|
TC_RA_ABLE
|
TC_VA_ABLE
);
default:
return
0
;
}
}
static
BOOL
CDECL
nulldrv_GetDeviceGammaRamp
(
PHYSDEV
dev
,
void
*
ramp
)
{
return
FALSE
;
...
...
@@ -794,7 +816,7 @@ const DC_FUNCTIONS null_driver =
nulldrv_GetBitmapBits
,
/* pGetBitmapBits */
nulldrv_GetCharWidth
,
/* pGetCharWidth */
nulldrv_GetDIBits
,
/* pGetDIBits */
NULL
,
/* pGetDeviceCaps */
nulldrv_GetDeviceCaps
,
/* pGetDeviceCaps */
nulldrv_GetDeviceGammaRamp
,
/* pGetDeviceGammaRamp */
nulldrv_GetICMProfile
,
/* pGetICMProfile */
nulldrv_GetNearestColor
,
/* pGetNearestColor */
...
...
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