forked from Mirrors/wine-wine
shcore: Add stub for GetScaleFactorForMonitor.
Based on a patch by Esdras Tarsis. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48016 Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>stable
parent
8fe3d7c913
commit
bbdc670931
|
@ -1,7 +1,7 @@
|
||||||
@ stdcall GetDpiForMonitor(long long ptr ptr) shcore.GetDpiForMonitor
|
@ stdcall GetDpiForMonitor(long long ptr ptr) shcore.GetDpiForMonitor
|
||||||
@ stdcall GetProcessDpiAwareness(long ptr) shcore.GetProcessDpiAwareness
|
@ stdcall GetProcessDpiAwareness(long ptr) shcore.GetProcessDpiAwareness
|
||||||
@ stub GetScaleFactorForDevice
|
@ stub GetScaleFactorForDevice
|
||||||
@ stub GetScaleFactorForMonitor
|
@ stdcall GetScaleFactorForMonitor(long ptr) shcore.GetScaleFactorForMonitor
|
||||||
@ stub RegisterScaleChangeEvent
|
@ stub RegisterScaleChangeEvent
|
||||||
@ stub RegisterScaleChangeNotifications
|
@ stub RegisterScaleChangeNotifications
|
||||||
@ stub RevokeScaleChangeNotifications
|
@ stub RevokeScaleChangeNotifications
|
||||||
|
|
|
@ -78,6 +78,14 @@ HRESULT WINAPI GetDpiForMonitor(HMONITOR monitor, MONITOR_DPI_TYPE type, UINT *x
|
||||||
return HRESULT_FROM_WIN32( GetLastError() );
|
return HRESULT_FROM_WIN32( GetLastError() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT WINAPI GetScaleFactorForMonitor(HMONITOR monitor, DEVICE_SCALE_FACTOR *scale)
|
||||||
|
{
|
||||||
|
FIXME("(%p %p): stub\n", monitor, scale);
|
||||||
|
|
||||||
|
*scale = SCALE_100_PERCENT;
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
HRESULT WINAPI _IStream_Read(IStream *stream, void *dest, ULONG size)
|
HRESULT WINAPI _IStream_Read(IStream *stream, void *dest, ULONG size)
|
||||||
{
|
{
|
||||||
ULONG read;
|
ULONG read;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
@ stdcall GetProcessDpiAwareness(long ptr)
|
@ stdcall GetProcessDpiAwareness(long ptr)
|
||||||
@ stdcall GetProcessReference(ptr)
|
@ stdcall GetProcessReference(ptr)
|
||||||
@ stub GetScaleFactorForDevice
|
@ stub GetScaleFactorForDevice
|
||||||
@ stub GetScaleFactorForMonitor
|
@ stdcall GetScaleFactorForMonitor(long ptr)
|
||||||
@ stub IStream_Copy
|
@ stub IStream_Copy
|
||||||
@ stdcall IStream_Read(ptr ptr long) _IStream_Read
|
@ stdcall IStream_Read(ptr ptr long) _IStream_Read
|
||||||
@ stub IStream_ReadStr
|
@ stub IStream_ReadStr
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
#ifndef __WINE_SHELLSCALINGAPI_H
|
#ifndef __WINE_SHELLSCALINGAPI_H
|
||||||
#define __WINE_SHELLSCALINGAPI_H
|
#define __WINE_SHELLSCALINGAPI_H
|
||||||
|
|
||||||
|
#include <shtypes.h>
|
||||||
|
|
||||||
typedef enum MONITOR_DPI_TYPE
|
typedef enum MONITOR_DPI_TYPE
|
||||||
{
|
{
|
||||||
MDT_EFFECTIVE_DPI = 0,
|
MDT_EFFECTIVE_DPI = 0,
|
||||||
|
@ -36,6 +38,7 @@ typedef enum PROCESS_DPI_AWARENESS
|
||||||
|
|
||||||
HRESULT WINAPI GetDpiForMonitor(HMONITOR,MONITOR_DPI_TYPE,UINT*,UINT*);
|
HRESULT WINAPI GetDpiForMonitor(HMONITOR,MONITOR_DPI_TYPE,UINT*,UINT*);
|
||||||
HRESULT WINAPI GetProcessDpiAwareness(HANDLE,PROCESS_DPI_AWARENESS*);
|
HRESULT WINAPI GetProcessDpiAwareness(HANDLE,PROCESS_DPI_AWARENESS*);
|
||||||
|
HRESULT WINAPI GetScaleFactorForMonitor(HMONITOR,DEVICE_SCALE_FACTOR*);
|
||||||
HRESULT WINAPI SetProcessDpiAwareness(PROCESS_DPI_AWARENESS);
|
HRESULT WINAPI SetProcessDpiAwareness(PROCESS_DPI_AWARENESS);
|
||||||
|
|
||||||
#endif /* __WINE_SHELLSCALINGAPI_H */
|
#endif /* __WINE_SHELLSCALINGAPI_H */
|
||||||
|
|
|
@ -161,3 +161,24 @@ cpp_quote("#define PERCEIVEDFLAG_NATIVESUPPORT 0x0004")
|
||||||
cpp_quote("#define PERCEIVEDFLAG_GDIPLUS 0x0010")
|
cpp_quote("#define PERCEIVEDFLAG_GDIPLUS 0x0010")
|
||||||
cpp_quote("#define PERCEIVEDFLAG_WMSDK 0x0020")
|
cpp_quote("#define PERCEIVEDFLAG_WMSDK 0x0020")
|
||||||
cpp_quote("#define PERCEIVEDFLAG_ZIPFOLDER 0x0040")
|
cpp_quote("#define PERCEIVEDFLAG_ZIPFOLDER 0x0040")
|
||||||
|
|
||||||
|
typedef [v1_enum] enum DEVICE_SCALE_FACTOR
|
||||||
|
{
|
||||||
|
DEVICE_SCALE_FACTOR_INVALID = 0,
|
||||||
|
SCALE_100_PERCENT = 100,
|
||||||
|
SCALE_120_PERCENT = 120,
|
||||||
|
SCALE_125_PERCENT = 125,
|
||||||
|
SCALE_140_PERCENT = 140,
|
||||||
|
SCALE_150_PERCENT = 150,
|
||||||
|
SCALE_160_PERCENT = 160,
|
||||||
|
SCALE_175_PERCENT = 175,
|
||||||
|
SCALE_180_PERCENT = 180,
|
||||||
|
SCALE_200_PERCENT = 200,
|
||||||
|
SCALE_225_PERCENT = 225,
|
||||||
|
SCALE_250_PERCENT = 250,
|
||||||
|
SCALE_300_PERCENT = 300,
|
||||||
|
SCALE_350_PERCENT = 350,
|
||||||
|
SCALE_400_PERCENT = 400,
|
||||||
|
SCALE_450_PERCENT = 450,
|
||||||
|
SCALE_500_PERCENT = 500
|
||||||
|
} DEVICE_SCALE_FACTOR;
|
||||||
|
|
Loading…
Reference in New Issue