• src/conio/win32gdi.c

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Wednesday, December 27, 2023 20:24:04
    https://gitlab.synchro.net/main/sbbs/-/commit/74f4348c4c15c980cdd6597c
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Fix some obvious MSVC warnings (unused variables, narrowing conversions)


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Saturday, February 10, 2024 21:56:29
    https://gitlab.synchro.net/main/sbbs/-/commit/1dd71e493ebbf033efec9051
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    This value is apparently sometimes an enum, sometimes a macro.

    Just use the raw value and a comment.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Saturday, February 10, 2024 22:28:17
    https://gitlab.synchro.net/main/sbbs/-/commit/99f4ec0bb66984df201f2a65
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Fix MSVC warning about defined standard C features.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Friday, February 16, 2024 21:36:45
    https://gitlab.synchro.net/main/sbbs/-/commit/ce7c2cca9a04f2ca6dbdd29d
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Make ALT-F4 map to CIO_KEY_QUIT in GDI mode.

    Fixes issue 124 on Sourceforge.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Saturday, February 17, 2024 10:18:29
    https://gitlab.synchro.net/main/sbbs/-/commit/9d06d169299bc144d44054ce
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Ensure the rectangle we're scaling to the screen matches the screen size.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, February 18, 2024 05:40:14
    https://gitlab.synchro.net/main/sbbs/-/commit/2848bf8f111ab9384e8042a6
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Support the third (now preferred) method of setting DPI awareness.

    We will now try SetProcessDpiAwarenessContext() first, then SetProcessDpiAwareness() second, and finally SetProcessDPIAware() [sic].

    Also, "handle" the WM_DPICHANGED event.

    This may solve problems initializing SyncTERM on systems with two
    displays that have different DPI settings.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, February 18, 2024 12:15:10
    https://gitlab.synchro.net/main/sbbs/-/commit/7ced2067c4bd47bd1bbfcb01
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    AdjustWindowRect() can't be used for "High DPI"

    So do more terrible hackery.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, February 18, 2024 14:43:45
    https://gitlab.synchro.net/main/sbbs/-/commit/c4f50632c58e88f2eeaab04a
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Fix pervasive fencepost error calculating width and height.

    Basically everywhere was off by one.

    Also, fix the get dpi size thingie to correct for window decorations.
    We never actually use the result of this, but Windows might for
    outline dragging or something... you can never know.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, February 19, 2024 07:50:59
    https://gitlab.synchro.net/main/sbbs/-/commit/891d50ef633b1ae76db06fee
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    More fencepost errors in the other direction...

    This is likely what make the old broken values appear to work.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, February 19, 2024 08:09:15
    https://gitlab.synchro.net/main/sbbs/-/commit/67a9bb19ec8c0585587dfa53
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Win32 API calls are __stdcall

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