• Show log

    Commit

  • Hash : d3b970d4
    Author : Eric Wasylishen
    Date : 2022-05-29T21:56:37

    HighDPI: remove SWP_NOSIZE in WIN_SetWindowPosition
    
    If the move results in a DPI change, we need to allow the window to resize (e.g. AdjustWindowRectExForDpi frame sizes are different).
    
    - WM_DPICHANGED: Don't assume WM_GETDPISCALEDSIZE is always called for PMv2 awareness - it's only called during interactive dragging.
    
    - WIN_AdjustWindowRectWithStyle: always calculate final window size including frame based on the destination rect,
    not based on the current window DPI.
    
    - Update wmmsg.h to include WM_GETDPISCALEDSIZE (for WMMSG_DEBUG)
    
    - WIN_AdjustWindowRectWithStyle: add optional logging
    
    - WM_GETMINMAXINFO: add optional HIGHDPI_DEBUG logging
    
    - WM_DPICHANGED: fix potentially clobbering data->expected_resize
    
    Together these changes fix the following scenario:
    - launch testwm2 with the SDL_WINDOWS_DPI_AWARENESS=permonitorv2 environment variable
    - Windows 10 21H2 (OS Build 19044.1706)
    - Left (primary) monitor: 3840x2160, 125% scaling
    - Right (secondary) monitor: 2560x1440, 100% scaling
    
    - Alt+Enter, Alt+Enter (to enter + leave desktop fullscreen), Alt+Right (to move window to right monitor). Ensure the window client area stays 640x480. Drag the window back to the 125% monitor, ensure client area stays 640x480.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags