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
1472f35e
Commit
1472f35e
authored
Jul 26, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Replace the SelectVisRgn Wine-specific export by a private entry point.
parent
b644c853
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
19 deletions
+15
-19
clipping.c
dlls/gdi32/clipping.c
+9
-11
gdi32.spec
dlls/gdi32/gdi32.spec
+1
-1
painting.c
dlls/user32/painting.c
+1
-4
sysparams.c
dlls/user32/sysparams.c
+0
-2
wingdi.h
include/wingdi.h
+4
-1
No files found.
dlls/gdi32/clipping.c
View file @
1472f35e
...
...
@@ -156,26 +156,24 @@ INT WINAPI ExtSelectClipRgn( HDC hdc, HRGN hrgn, INT fnMode )
}
/***********************************************************************
* SelectVisRgn (GDI32.@)
*
* Note: not exported on Windows, only the 16-bit version is exported.
* __wine_set_visible_region (GDI32.@)
*/
INT
WINAPI
SelectVisRgn
(
HDC
hdc
,
HRGN
hrgn
)
void
CDECL
__wine_set_visible_region
(
HDC
hdc
,
HRGN
hrgn
,
const
RECT
*
vis_rect
)
{
int
retval
;
DC
*
dc
;
if
(
!
hrgn
)
return
ERROR
;
if
(
!
(
dc
=
get_dc_ptr
(
hdc
)))
return
ERROR
;
if
(
!
(
dc
=
get_dc_ptr
(
hdc
)))
return
;
TRACE
(
"%p %p
\n
"
,
hdc
,
hrgn
);
TRACE
(
"%p %p %s
\n
"
,
hdc
,
hrgn
,
wine_dbgstr_rect
(
vis_rect
)
);
dc
->
dirty
=
0
;
/* map region to DC coordinates */
OffsetRgn
(
hrgn
,
-
vis_rect
->
left
,
-
vis_rect
->
top
);
retval
=
CombineRgn
(
dc
->
hVisRgn
,
hrgn
,
0
,
RGN_COPY
);
DeleteObject
(
dc
->
hVisRgn
);
dc
->
dirty
=
0
;
dc
->
hVisRgn
=
hrgn
;
CLIPPING_UpdateGCRegion
(
dc
);
release_dc_ptr
(
dc
);
return
retval
;
}
...
...
dlls/gdi32/gdi32.spec
View file @
1472f35e
...
...
@@ -514,7 +514,6 @@
# Wine extensions: Win16 functions that are needed by other dlls
#
@ stdcall GetDCHook(long ptr)
@ stdcall SelectVisRgn(long long)
@ stdcall SetDCHook(long ptr long)
@ stdcall SetHookFlags(long long)
...
...
@@ -526,3 +525,4 @@
# GDI objects
@ cdecl __wine_make_gdi_object_system(long long)
@ cdecl __wine_set_visible_region(long long ptr)
dlls/user32/painting.c
View file @
1472f35e
...
...
@@ -160,10 +160,7 @@ static void update_visible_region( struct dce *dce )
if
(
dce
->
clip_rgn
)
CombineRgn
(
vis_rgn
,
vis_rgn
,
dce
->
clip_rgn
,
(
flags
&
DCX_INTERSECTRGN
)
?
RGN_AND
:
RGN_DIFF
);
/* map region to DC coordinates */
OffsetRgn
(
vis_rgn
,
-
win_rect
.
left
,
-
win_rect
.
top
);
SelectVisRgn
(
dce
->
hdc
,
vis_rgn
);
DeleteObject
(
vis_rgn
);
__wine_set_visible_region
(
dce
->
hdc
,
vis_rgn
,
&
win_rect
);
}
...
...
dlls/user32/sysparams.c
View file @
1472f35e
...
...
@@ -384,8 +384,6 @@ static const WORD wPattern55AA[] = { 0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xa
HBRUSH
SYSCOLOR_55AABrush
=
0
;
extern
void
CDECL
__wine_make_gdi_object_system
(
HGDIOBJ
handle
,
BOOL
set
);
static
void
SYSPARAMS_LogFont16To32W
(
const
LOGFONT16
*
font16
,
LPLOGFONTW
font32
)
{
...
...
include/wingdi.h
View file @
1472f35e
...
...
@@ -3790,7 +3790,10 @@ typedef BOOL (CALLBACK *DCHOOKPROC)(HDC,WORD,DWORD_PTR,LPARAM);
WINGDIAPI
DWORD_PTR
WINAPI
GetDCHook
(
HDC
,
DCHOOKPROC
*
);
WINGDIAPI
BOOL
WINAPI
SetDCHook
(
HDC
,
DCHOOKPROC
,
DWORD_PTR
);
WINGDIAPI
WORD
WINAPI
SetHookFlags
(
HDC
,
WORD
);
WINGDIAPI
INT
WINAPI
SelectVisRgn
(
HDC
,
HRGN
);
extern
void
CDECL
__wine_make_gdi_object_system
(
HGDIOBJ
handle
,
BOOL
set
);
extern
void
CDECL
__wine_set_visible_region
(
HDC
hdc
,
HRGN
hrgn
,
const
RECT
*
vis_rect
);
#endif
/* __WINESRC__ */
#ifdef __cplusplus
...
...
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