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
46d27618
Commit
46d27618
authored
May 31, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Remove now unused virtual screen helpers.
parent
c899cc82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
41 deletions
+1
-41
sysparams.c
dlls/user32/sysparams.c
+1
-38
user_private.h
dlls/user32/user_private.h
+0
-3
No files found.
dlls/user32/sysparams.c
View file @
46d27618
...
...
@@ -160,43 +160,6 @@ static void SYSPARAMS_NonClientMetrics32ATo32W( const NONCLIENTMETRICSA* lpnm32A
/* Helper functions to retrieve monitors info */
static
BOOL
CALLBACK
get_virtual_screen_proc
(
HMONITOR
monitor
,
HDC
hdc
,
LPRECT
rect
,
LPARAM
lp
)
{
RECT
*
virtual_rect
=
(
RECT
*
)
lp
;
UnionRect
(
virtual_rect
,
virtual_rect
,
rect
);
return
TRUE
;
}
RECT
get_virtual_screen_rect
(
void
)
{
RECT
rect
=
{
0
};
NtUserEnumDisplayMonitors
(
0
,
NULL
,
get_virtual_screen_proc
,
(
LPARAM
)
&
rect
);
return
rect
;
}
static
BOOL
CALLBACK
get_primary_monitor_proc
(
HMONITOR
monitor
,
HDC
hdc
,
LPRECT
rect
,
LPARAM
lp
)
{
RECT
*
primary_rect
=
(
RECT
*
)
lp
;
if
(
!
rect
->
top
&&
!
rect
->
left
&&
rect
->
right
&&
rect
->
bottom
)
{
*
primary_rect
=
*
rect
;
return
FALSE
;
}
return
TRUE
;
}
RECT
get_primary_monitor_rect
(
void
)
{
RECT
rect
=
{
0
};
NtUserEnumDisplayMonitors
(
0
,
NULL
,
get_primary_monitor_proc
,
(
LPARAM
)
&
rect
);
return
rect
;
}
HDC
get_display_dc
(
void
)
{
EnterCriticalSection
(
&
display_dc_section
);
...
...
@@ -235,7 +198,7 @@ static void release_display_device_init_mutex( HANDLE mutex )
}
/* Wait until graphics driver is loaded by explorer */
void
wait_graphics_driver_ready
(
void
)
static
void
wait_graphics_driver_ready
(
void
)
{
static
BOOL
ready
=
FALSE
;
...
...
dlls/user32/user_private.h
View file @
46d27618
...
...
@@ -55,10 +55,7 @@ extern HANDLE render_synthesized_format( UINT format, UINT from ) DECLSPEC_HIDDE
extern
void
CLIPBOARD_ReleaseOwner
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
HDC
get_display_dc
(
void
)
DECLSPEC_HIDDEN
;
extern
void
release_display_dc
(
HDC
hdc
)
DECLSPEC_HIDDEN
;
extern
void
wait_graphics_driver_ready
(
void
)
DECLSPEC_HIDDEN
;
extern
void
*
get_hook_proc
(
void
*
proc
,
const
WCHAR
*
module
,
HMODULE
*
free_module
)
DECLSPEC_HIDDEN
;
extern
RECT
get_virtual_screen_rect
(
void
)
DECLSPEC_HIDDEN
;
extern
RECT
get_primary_monitor_rect
(
void
)
DECLSPEC_HIDDEN
;
extern
DWORD
get_input_codepage
(
void
)
DECLSPEC_HIDDEN
;
extern
BOOL
map_wparam_AtoW
(
UINT
message
,
WPARAM
*
wparam
,
enum
wm_char_mapping
mapping
)
DECLSPEC_HIDDEN
;
extern
HPEN
SYSCOLOR_GetPen
(
INT
index
)
DECLSPEC_HIDDEN
;
...
...
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