mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-22 02:46:40 +00:00
user32: Remove now unused virtual screen helpers.
This commit is contained in:
parent
c899cc8215
commit
46d276188e
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue