• src/conio/OverhaulNotes.txt win32gdi.c

    From Deucе@VERT to Git commit to main/sbbs/master on Fri Sep 27 21:38:34 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/a8e5929a05112535cac17205
    Modified Files:
    src/conio/OverhaulNotes.txt win32gdi.c
    Log Message:
    Fix issue 138

    Weird stuff happened when dragging a GDI window between monitors
    with different zoom (DPI) settings. The following changes were
    all done to clean up this stuff:

    Window position is signed
    Do some type casting for warnings
    Fix return times of GetDpiFor*() pointers
    Fix fallback to GetDpiForSystem() (could never be used)
    Handle WM_DPICHANGED correctly
    Move some copy/pasted code into a function
    Fix return value for WM_GETDPISCALEDSIZE
    Fix return value for WM_USER_SETCURSOR

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Sep 30 13:59:51 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/7ece180e249daa63249931d5
    Modified Files:
    src/conio/OverhaulNotes.txt win32gdi.c
    Log Message:
    Fix issue 146

    Fix return value when handling WM_SETCURSOR. Returning FALSE
    indicating we didn't handle it stopped the cursor from being set
    to the size arrow cursors. Instead, pass it to DefWindowProc().

    While we're here, handle WM_SIZING to make it more clear that you
    can't change the aspect ratio by dragging.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net