NAME

NtGdiSetVirtualResolution  (WIN32U.@)

SYNOPSIS

 BOOL NtGdiSetVirtualResolution
 (
  HDC   hdc,
  DWORD horz_res,
  DWORD vert_res,
  DWORD horz_size,
  DWORD vert_size
 )

DESCRIPTION

Undocumented on msdn.

Changes the values of screen size in pixels and millimeters used by the mapping mode functions.

PARAMS

hdc [In] Device context.
horz_res [In] Width in pixels (equivalent to HORZRES device cap).
vert_res [In] Height in pixels (equivalent to VERTRES device cap).
horz_size [In] Width in mm (equivalent to HORZSIZE device cap).
vert_size [In] Height in mm (equivalent to VERTSIZE device cap).

RETURNS

TRUE if successful. FALSE if any (but not all) of the last four params are zero.

NOTES

This doesn't change the values returned by NtGdiGetDeviceCaps, just the scaling of the mapping modes.

Calling with the last four params equal to zero sets the values back to their defaults obtained by calls to NtGdiGetDeviceCaps.

IMPLEMENTATION

Declared in "ntgdi.h". https://source.winehq.org/source/include/ntgdi.h

Implemented in "dlls/win32u/mapping.c". https://source.winehq.org/source/dlls/win32u/mapping.c

Debug channel "dc".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.