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
2776a979
Commit
2776a979
authored
Apr 10, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add explicit fields for the DC flags.
parent
b762fcc9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
dc.c
dlls/gdi32/dc.c
+3
-3
gdi_private.h
dlls/gdi32/gdi_private.h
+3
-4
path.c
dlls/gdi32/path.c
+3
-3
No files found.
dlls/gdi32/dc.c
View file @
2776a979
...
...
@@ -1347,7 +1347,7 @@ UINT WINAPI SetBoundsRect(HDC hdc, const RECT* rect, UINT flags)
if
((
flags
&
DCB_ENABLE
)
&&
(
flags
&
DCB_DISABLE
))
return
0
;
if
(
!
(
dc
=
get_dc_ptr
(
hdc
)))
return
0
;
ret
=
(
(
dc
->
flags
&
DC_BOUNDS_ENABLE
)
?
DCB_ENABLE
:
DCB_DISABLE
)
|
ret
=
(
dc
->
bounds_enabled
?
DCB_ENABLE
:
DCB_DISABLE
)
|
(
is_rect_empty
(
&
dc
->
BoundsRect
)
?
DCB_RESET
:
DCB_SET
);
if
(
flags
&
DCB_RESET
)
...
...
@@ -1376,8 +1376,8 @@ UINT WINAPI SetBoundsRect(HDC hdc, const RECT* rect, UINT flags)
}
}
if
(
flags
&
DCB_ENABLE
)
dc
->
flags
|=
DC_BOUNDS_ENABL
E
;
if
(
flags
&
DCB_DISABLE
)
dc
->
flags
&=
~
DC_BOUNDS_ENABL
E
;
if
(
flags
&
DCB_ENABLE
)
dc
->
bounds_enabled
=
TRU
E
;
if
(
flags
&
DCB_DISABLE
)
dc
->
bounds_enabled
=
FALS
E
;
release_dc_ptr
(
dc
);
return
ret
;
...
...
dlls/gdi32/gdi_private.h
View file @
2776a979
...
...
@@ -89,6 +89,9 @@ typedef struct tagDC
DWORD_PTR
dwHookData
;
DCHOOKPROC
hookProc
;
/* DC hook */
BOOL
bounds_enabled
:
1
;
/* bounds tracking is enabled */
BOOL
path_open
:
1
;
/* path is currently open (only for saved DCs) */
INT
wndOrgX
;
/* Window origin */
INT
wndOrgY
;
INT
wndExtX
;
/* Window extent */
...
...
@@ -149,10 +152,6 @@ typedef struct tagDC
RECT
BoundsRect
;
/* Current bounding rect */
}
DC
;
/* DC flags */
#define DC_PATH_OPEN 0x0001
/* DC path is open (only set on saved DCs) */
#define DC_BOUNDS_ENABLE 0x0008
/* Bounding rectangle tracking is enabled */
/* Certain functions will do no further processing if the driver returns this.
Used by mfdrv for example. */
#define GDI_NO_MORE_WORK 2
...
...
dlls/gdi32/path.c
View file @
2776a979
...
...
@@ -867,7 +867,7 @@ BOOL PATH_SavePath( DC *dst, DC *src )
else
if
((
physdev
=
find_path_physdev
(
src
)))
{
if
(
!
(
dst
->
path
=
copy_gdi_path
(
physdev
->
path
)))
return
FALSE
;
dst
->
flags
|=
DC_PATH_OPEN
;
dst
->
path_open
=
TRUE
;
}
else
dst
->
path
=
NULL
;
return
TRUE
;
...
...
@@ -877,7 +877,7 @@ BOOL PATH_RestorePath( DC *dst, DC *src )
{
struct
path_physdev
*
physdev
=
find_path_physdev
(
dst
);
if
(
src
->
path
&&
(
src
->
flags
&
DC_PATH_OPEN
)
)
if
(
src
->
path
&&
src
->
path_open
)
{
if
(
!
physdev
)
{
...
...
@@ -887,7 +887,7 @@ BOOL PATH_RestorePath( DC *dst, DC *src )
else
free_gdi_path
(
physdev
->
path
);
physdev
->
path
=
src
->
path
;
src
->
flags
&=
~
DC_PATH_OPEN
;
src
->
path_open
=
FALSE
;
src
->
path
=
NULL
;
}
else
if
(
physdev
)
...
...
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