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
dab3825b
Commit
dab3825b
authored
Mar 27, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Make the EMF driver return sane NUMCOLORS value.
parent
7bf7cdd1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
dc.c
dlls/gdi32/enhmfdrv/dc.c
+2
-2
enhmetafiledrv.h
dlls/gdi32/enhmfdrv/enhmetafiledrv.h
+1
-0
init.c
dlls/gdi32/enhmfdrv/init.c
+1
-0
No files found.
dlls/gdi32/enhmfdrv/dc.c
View file @
dab3825b
...
...
@@ -317,10 +317,10 @@ INT EMFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
return
physDev
->
technology
;
case
PLANES
:
return
physDev
->
planes
;
case
NUMCOLORS
:
return
physDev
->
numcolors
;
default:
FIXME
(
"Unimplemented cap %d
\n
"
,
cap
);
return
0
;
}
}
dlls/gdi32/enhmfdrv/enhmetafiledrv.h
View file @
dab3825b
...
...
@@ -46,6 +46,7 @@ typedef struct
INT
rastercaps
;
INT
technology
;
INT
planes
;
INT
numcolors
;
}
EMFDRV_PDEVICE
;
...
...
dlls/gdi32/enhmfdrv/init.c
View file @
dab3825b
...
...
@@ -356,6 +356,7 @@ HDC WINAPI CreateEnhMetaFileW(
physDev
->
rastercaps
=
GetDeviceCaps
(
hRefDC
,
RASTERCAPS
);
physDev
->
technology
=
GetDeviceCaps
(
hRefDC
,
TECHNOLOGY
);
physDev
->
planes
=
GetDeviceCaps
(
hRefDC
,
PLANES
);
physDev
->
numcolors
=
GetDeviceCaps
(
hRefDC
,
NUMCOLORS
);
physDev
->
emh
->
iType
=
EMR_HEADER
;
physDev
->
emh
->
nSize
=
size
;
...
...
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