mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
Merge branch 'mr/systemmetrics-tablet' into 'master'
win32u: Add registry key for changing tablet status. See merge request wine/wine!5234
This commit is contained in:
commit
a5a8cbc667
1 changed files with 5 additions and 1 deletions
|
@ -160,6 +160,7 @@ static pthread_mutex_t display_lock = PTHREAD_MUTEX_INITIALIZER;
|
|||
|
||||
static BOOL emulate_modeset;
|
||||
BOOL decorated_mode = TRUE;
|
||||
BOOL tabletpc_mode = FALSE;
|
||||
UINT64 thunk_lock_callback = 0;
|
||||
|
||||
#define VIRTUAL_HMONITOR ((HMONITOR)(UINT_PTR)(0x10000 + 1))
|
||||
|
@ -5432,6 +5433,8 @@ void sysparams_init(void)
|
|||
decorated_mode = IS_OPTION_TRUE( buffer[0] );
|
||||
if (!get_config_key( hkey, appkey, "EmulateModeset", buffer, sizeof(buffer) ))
|
||||
emulate_modeset = IS_OPTION_TRUE( buffer[0] );
|
||||
if (!get_config_key( hkey, appkey, "TabletPC", buffer, sizeof(buffer) ))
|
||||
tabletpc_mode = IS_OPTION_TRUE( buffer[0] );
|
||||
|
||||
#undef IS_OPTION_TRUE
|
||||
|
||||
|
@ -6608,8 +6611,9 @@ int get_system_metrics( int index )
|
|||
case SM_CYFOCUSBORDER:
|
||||
return 1;
|
||||
case SM_TABLETPC:
|
||||
return tabletpc_mode;
|
||||
case SM_MEDIACENTER:
|
||||
return 0;
|
||||
return 1;
|
||||
case SM_CMETRICS:
|
||||
return SM_CMETRICS;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue