[PATCH] user32: add stub for SetThreadDpiAwarenessContext

Huw Davies huw at codeweavers.com
Mon Mar 26 12:05:39 CDT 2018


On Mon, Mar 26, 2018 at 05:54:47PM +0200, Louis Lenders wrote:
> This should help for https://bugs.winehq.org/show_bug.cgi?id=44719
> I checked it helps another appĀ  found that uses this function on
> 
> https://bitbucket.org/toptensoftware/minimalopengl/

> From e40815dfcb37d315b8e83842fd0338e08ef50833 Mon Sep 17 00:00:00 2001
> From: Louis Lenders <xerox.xerox2000x at gmail.com>
> Date: Sun, 25 Mar 2018 23:15:46 +0200
> Subject: [PATCH 1/3] user32: add stub for SetThreadDpiAwarenessContext
> 
> Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
> ---
>  dlls/user32/misc.c      | 9 +++++++++
>  dlls/user32/user32.spec | 1 +
>  include/windef.h        | 2 ++
>  include/winuser.h       | 1 +
>  4 files changed, 13 insertions(+)
> 
> diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c
> index 895ccce..e5ce389 100644
> --- a/dlls/user32/misc.c
> +++ b/dlls/user32/misc.c
> @@ -837,6 +837,15 @@ LONG WINAPI GetDisplayConfigBufferSizes(UINT32 flags, UINT32 *num_path_info, UIN
>      return ERROR_NOT_SUPPORTED;
>  }
>  
> +/**********************************************************************
> + * SetThreadDpiAwarenessContext [USER32.@]
> + */
> +DPI_AWARENESS_CONTEXT WINAPI SetThreadDpiAwarenessContext( DPI_AWARENESS_CONTEXT context )
> +{
> +   FIXME("(%p): stub\n", context);
> +   return NULL;
> +}
> +
>  static const WCHAR imeW[] = {'I','M','E',0};
>  const struct builtin_class_descr IME_builtin_class =
>  {

Could you put this in sysparams.c with all the other dpi functions?

Huw.



More information about the wine-devel mailing list