From: Aida JonikienÄ— aidas957@gmail.com
Some applications expect the tablet PC metric to return a positive value (so add an option to set that).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=18732 --- dlls/win32u/sysparams.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index cc27f3dc7f2..9947307f03f 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -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,6 +6611,7 @@ int get_system_metrics( int index ) case SM_CYFOCUSBORDER: return 1; case SM_TABLETPC: + return tabletpc_mode; case SM_MEDIACENTER: return 0; case SM_CMETRICS: