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
9bfb173c
Commit
9bfb173c
authored
Aug 20, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GDI locking in GetDeviceCaps.
parent
0ad7874b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
25 deletions
+21
-25
dc.c
objects/dc.c
+21
-25
No files found.
objects/dc.c
View file @
9bfb173c
...
...
@@ -809,38 +809,34 @@ INT WINAPI GetDeviceCaps( HDC hdc, INT cap )
switch
(
cap
)
{
case
PHYSICALWIDTH
:
if
(
Escape
(
hdc
,
GETPHYSPAGESIZE
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
return
pt
.
x
;
if
(
Escape
(
hdc
,
GETPHYSPAGESIZE
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
ret
=
pt
.
x
;
break
;
case
PHYSICALHEIGHT
:
if
(
Escape
(
hdc
,
GETPHYSPAGESIZE
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
return
pt
.
y
;
if
(
Escape
(
hdc
,
GETPHYSPAGESIZE
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
ret
=
pt
.
y
;
break
;
case
PHYSICALOFFSETX
:
if
(
Escape
(
hdc
,
GETPRINTINGOFFSET
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
return
pt
.
x
;
if
(
Escape
(
hdc
,
GETPRINTINGOFFSET
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
ret
=
pt
.
x
;
break
;
case
PHYSICALOFFSETY
:
if
(
Escape
(
hdc
,
GETPRINTINGOFFSET
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
return
pt
.
y
;
if
(
Escape
(
hdc
,
GETPRINTINGOFFSET
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
ret
=
pt
.
y
;
break
;
case
SCALINGFACTORX
:
if
(
Escape
(
hdc
,
GETSCALINGFACTOR
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
return
pt
.
x
;
if
(
Escape
(
hdc
,
GETSCALINGFACTOR
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
ret
=
pt
.
x
;
break
;
case
SCALINGFACTORY
:
if
(
Escape
(
hdc
,
GETSCALINGFACTOR
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
return
pt
.
y
;
if
(
Escape
(
hdc
,
GETSCALINGFACTOR
,
0
,
NULL
,
(
LPVOID
)
&
pt
)
>
0
)
ret
=
pt
.
y
;
break
;
default:
if
((
cap
<
0
)
||
(
cap
>
sizeof
(
DeviceCaps
)
-
sizeof
(
WORD
)))
break
;
if
(((
cap
>=
46
)
&&
(
cap
<
88
))
||
((
cap
>=
92
)
&&
(
cap
<
104
)))
FIXME
(
"(%04x,%d): unsupported DeviceCaps capability, will yield 0!
\n
"
,
hdc
,
cap
);
ret
=
*
(
WORD
*
)(((
char
*
)
dc
->
w
.
devCaps
)
+
cap
);
break
;
}
if
((
cap
<
0
)
||
(
cap
>
sizeof
(
DeviceCaps
)
-
sizeof
(
WORD
)))
{
GDI_ReleaseObj
(
hdc
);
return
0
;
}
if
(((
cap
>=
46
)
&&
(
cap
<
88
))
||
((
cap
>=
92
)
&&
(
cap
<
104
)))
FIXME
(
"(%04x,%d): unsupported DeviceCaps capability, will yield 0!
\n
"
,
hdc
,
cap
);
TRACE
(
"(%04x,%d): returning %d
\n
"
,
hdc
,
cap
,
*
(
WORD
*
)(((
char
*
)
dc
->
w
.
devCaps
)
+
cap
)
);
ret
=
*
(
WORD
*
)(((
char
*
)
dc
->
w
.
devCaps
)
+
cap
);
TRACE
(
"(%04x,%d): returning %d
\n
"
,
hdc
,
cap
,
ret
);
GDI_ReleaseObj
(
hdc
);
return
ret
;
}
...
...
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