Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
161bc831
Commit
161bc831
authored
Nov 29, 2000
by
Brian Teague
Committed by
Alexandre Julliard
Nov 29, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a stub for the CAPS1 capability in GetDeviceCaps.
Define the CAPS1 bit flags in wingdi.h Make various calls to GetDeviceCaps in DLLS use #defined values.
parent
e296bf37
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
2 deletions
+32
-2
imagelist.c
dlls/comctl32/imagelist.c
+1
-1
msvideo_main.c
dlls/msvideo/msvideo_main.c
+1
-1
wingdi.h
include/wingdi.h
+17
-0
dc.c
objects/dc.c
+13
-0
No files found.
dlls/comctl32/imagelist.c
View file @
161bc831
...
...
@@ -1952,7 +1952,7 @@ static int may_use_dibsection(HDC hdc) {
return TRUE;
if (bitspixel<=4)
return FALSE;
return GetDeviceCaps(hdc,
94) & 0x10
;
return GetDeviceCaps(hdc,
CAPS1) & C1_DIBENGINE
;
}
#endif
...
...
dlls/msvideo/msvideo_main.c
View file @
161bc831
...
...
@@ -348,7 +348,7 @@ HIC VFWAPI ICGetDisplayFormat(
HDC
hdc
;
hdc
=
GetDC
(
0
);
depth
=
GetDeviceCaps
(
hdc
,
12
)
*
GetDeviceCaps
(
hdc
,
14
);
depth
=
GetDeviceCaps
(
hdc
,
BITSPIXEL
)
*
GetDeviceCaps
(
hdc
,
PLANES
);
ReleaseDC
(
0
,
hdc
);
if
(
depth
==
15
)
depth
=
16
;
if
(
depth
<
8
)
depth
=
8
;
...
...
include/wingdi.h
View file @
161bc831
...
...
@@ -1509,6 +1509,7 @@ typedef struct tagEXTLOGPEN
#define ASPECTXY 44
#define LOGPIXELSX 88
#define LOGPIXELSY 90
#define CAPS1 94
#define SIZEPALETTE 104
#define NUMRESERVED 106
#define COLORRES 108
...
...
@@ -1612,6 +1613,22 @@ typedef struct tagEXTLOGPEN
#define RC_OP_DX_OUTPUT 0x4000
#define RC_DEVBITS 0x8000
/* CAPS1 */
#define C1_TRANSPARENT 0x0001
#define TC_TT_ABLE 0x0002
#define C1_TT_CR_ANY 0x0004
#define C1_EMF_COMPLIANT 0x0008
#define C1_DIBENGINE 0x0010
#define C1_GAMMA_RAMP 0x0040
#define C1_REINIT_ABLE 0x0080
#define C1_GLYPH_INDEX 0x0100
#define C1_BIT_PACKED 0x0200
#define C1_BYTE_PACKED 0x0400
#define C1_COLORCURSOR 0x0800
#define C1_CMYK_ABLE 0x1000
#define C1_SLOW_CARD 0x2000
/* Device-independent bitmaps */
typedef
struct
{
...
...
objects/dc.c
View file @
161bc831
...
...
@@ -820,6 +820,19 @@ INT WINAPI GetDeviceCaps( HDC hdc, INT cap )
case
SCALINGFACTORY
:
if
(
Escape
(
hdc
,
GETSCALINGFACTOR
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
ret
=
pt
.
y
;
break
;
case
CAPS1
:
FIXME
(
"(%04x,%d): DeviceCaps param CAPS1 is UNIMPLEMENTED, will yield 0!
\n
"
,
hdc
,
cap
);
/* please see wingdi.h for the possible bit-flag values that need
to be returned.
also, see
http://msdn.microsoft.com/library/ddkdoc/win95ddk/graphcnt_1m0p.htm
the fall-through to 'default' is on purpose */
default:
if
((
cap
<
0
)
||
(
cap
>
sizeof
(
DeviceCaps
)
-
sizeof
(
WORD
)))
break
;
...
...
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