Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gabriel Ivăncescu
wine
Commits
46d27618
Commit
46d27618
authored
1 year ago
by
Rémi Bernon
Committed by
Alexandre Julliard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
user32: Remove now unused virtual screen helpers.
parent
c899cc82
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/user32/sysparams.c
+1
-38
1 addition, 38 deletions
dlls/user32/sysparams.c
dlls/user32/user_private.h
+0
-3
0 additions, 3 deletions
dlls/user32/user_private.h
with
1 addition
and
41 deletions
dlls/user32/sysparams.c
+
1
−
38
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
;
...
...
This diff is collapsed.
Click to expand it.
dlls/user32/user_private.h
+
0
−
3
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment