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
0b87a19a
Commit
0b87a19a
authored
Apr 21, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of visible region in Save/RestoreDC.
parent
88dadaec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dc.c
objects/dc.c
+4
-4
No files found.
objects/dc.c
View file @
0b87a19a
...
...
@@ -253,7 +253,7 @@ HDC16 WINAPI GetDCState16( HDC16 hdc )
DC
*
newdc
,
*
dc
;
HGDIOBJ
handle
;
if
(
!
(
dc
=
DC_GetDC
Update
(
hdc
)))
return
0
;
if
(
!
(
dc
=
DC_GetDC
Ptr
(
hdc
)))
return
0
;
if
(
!
(
newdc
=
GDI_AllocObject
(
sizeof
(
DC
),
DC_MAGIC
,
&
handle
)))
{
GDI_ReleaseObj
(
hdc
);
...
...
@@ -346,7 +346,7 @@ void WINAPI SetDCState16( HDC16 hdc, HDC16 hdcs )
{
DC
*
dc
,
*
dcs
;
if
(
!
(
dc
=
GDI_GetObjPtr
(
hdc
,
DC_MAGIC
)))
return
;
if
(
!
(
dc
=
DC_GetDCUpdate
(
hdc
)))
return
;
if
(
!
(
dcs
=
GDI_GetObjPtr
(
hdcs
,
DC_MAGIC
)))
{
GDI_ReleaseObj
(
hdc
);
...
...
@@ -446,7 +446,7 @@ INT WINAPI SaveDC( HDC hdc )
DC
*
dc
,
*
dcs
;
INT
ret
;
dc
=
DC_GetDC
Update
(
hdc
);
dc
=
DC_GetDC
Ptr
(
hdc
);
if
(
!
dc
)
return
0
;
if
(
dc
->
funcs
->
pSaveDC
)
...
...
@@ -505,7 +505,7 @@ BOOL WINAPI RestoreDC( HDC hdc, INT level )
BOOL
success
;
TRACE
(
"%04x %d
\n
"
,
hdc
,
level
);
dc
=
DC_GetDC
Ptr
(
hdc
);
dc
=
DC_GetDC
Update
(
hdc
);
if
(
!
dc
)
return
FALSE
;
if
(
dc
->
funcs
->
pRestoreDC
)
{
...
...
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