From: Mohamad Al-Jaf <mohamadaljaf@gmail.com> Needed by HP Prime Virtual Calculator Emulator. --- dlls/windows.ui/tests/uisettings.c | 3 --- dlls/windows.ui/uisettings.c | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/windows.ui/tests/uisettings.c b/dlls/windows.ui/tests/uisettings.c index d63961f3a60..102d7a2ca8f 100644 --- a/dlls/windows.ui/tests/uisettings.c +++ b/dlls/windows.ui/tests/uisettings.c @@ -225,14 +225,11 @@ static void test_UISettings(void) check_interface( inspectable, &IID_IWeakReference, FALSE ); hr = IInspectable_QueryInterface( inspectable, &IID_IUISettings2, (void **)&uisettings2 ); - todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr ); text_scale_factor = 12345.6; hr = IUISettings2_get_TextScaleFactor( uisettings2, &text_scale_factor ); - todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr ); - todo_wine ok( text_scale_factor == 1.0, "got text_scale_factor %f.\n", text_scale_factor ); IUISettings2_Release( uisettings2 ); diff --git a/dlls/windows.ui/uisettings.c b/dlls/windows.ui/uisettings.c index a58becf3555..e94ec0916e9 100644 --- a/dlls/windows.ui/uisettings.c +++ b/dlls/windows.ui/uisettings.c @@ -235,7 +235,8 @@ DEFINE_IINSPECTABLE( uisettings2, IUISettings2, struct uisettings, IUISettings_i static HRESULT WINAPI uisettings2_get_TextScaleFactor( IUISettings2 *iface, DOUBLE *value ) { FIXME( "iface %p, value %p stub!\n", iface, value ); - return E_NOTIMPL; + *value = 1.0; + return S_OK; } static HRESULT WINAPI uisettings2_add_TextScaleFactorChanged( IUISettings2 *iface, ITypedEventHandler_UISettings_IInspectable *handler, -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9889