• src/conio/sdl_con.c sdlfuncs.c sdlfuncs.h

    From Deuc¿@VERT to Git commit to main/sbbs/master on Tue Mar 16 10:25:50 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/e2f5762b2de6117b5701a9c0
    Modified Files:
    src/conio/sdl_con.c sdlfuncs.c sdlfuncs.h
    Log Message:
    Don't allow ALT-Direction to work when maximized

    With maximized windows, unexpected behaviour occured when the program
    resized itself, then the window manager minimized/restored the window
    Should address SF bugs #18 and #13

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wed Apr 1 14:40:19 2020
    src/conio sdl_con.c 1.269 1.270 sdlfuncs.c 1.43 1.44 sdlfuncs.h 1.25 1.26 Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv15203

    Modified Files:
    sdl_con.c sdlfuncs.c sdlfuncs.h
    Log Message:
    Add key bindings to perform integer scaling steps, and use integer scaling
    when such a size is selected.

    META-<arrow> keys now change the window size in SDL mode... left and up
    make the window smaller, and down and right make it larger.

    On Windows, the META key is the Windows key... On Apple systems, maybe it's
    the Apple key? *shrug*




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Thu Apr 2 17:22:18 2020
    src/conio sdl_con.c 1.274 1.275 sdlfuncs.c 1.45 1.46 sdlfuncs.h 1.27 1.28 Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv8701/conio

    Modified Files:
    sdl_con.c sdlfuncs.c sdlfuncs.h
    Log Message:
    Set window minimum size to 1x scaling, update internal copy of window size
    when the window is resized (fixes mouse offsets).




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri Apr 3 01:34:58 2020
    src/conio sdl_con.c 1.275 1.276 sdlfuncs.c 1.47 1.48 sdlfuncs.h 1.28 1.29 Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv19658/conio

    Modified Files:
    sdl_con.c sdlfuncs.c sdlfuncs.h
    Log Message:
    Remove platform-specific copy/paste code and use SDL2 copy/paste code instead. This means I needed to whip up utf-8 <-> cp437 converters.

    Only loss of functionality is that we can't paste NULs anymore. We can
    *copy* them though, they are converted to zero-width non-breaking spaces.

    Depending on feedback, I may need to normalize the UTF-8 before conversion
    to get the most matches, and zero-width/combining codepoints should likely
    be stripped instead of replaced, but I'm not overly worried about it.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri Apr 3 10:45:19 2020
    src/conio sdl_con.c 1.276 1.277 sdlfuncs.c 1.48 1.49 sdlfuncs.h 1.29 1.30 Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv30340

    Modified Files:
    sdl_con.c sdlfuncs.c sdlfuncs.h
    Log Message:
    Update to new mutex function names.
    Win32 can no longer exit() and WinExec() itself with impunity.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Prime@VERT/RETROCON to deuce on Fri Apr 10 08:37:13 2020
    Re: src/conio/sdl_con.c sdlfuncs.c sdlfuncs.h
    By: deuce to CVS commit on Wed Apr 01 2020 02:40 pm

    On Windows, the META key is the Windows key... On Apple systems, maybe it's the Apple key? *shrug*

    It should be the "Option" key I believe.

    ---
    þ Synchronet þ Retro Connect BBS
  • From deuce@VERT to CVS commit on Tue Apr 28 18:41:08 2020
    src/conio sdl_con.c 1.300 1.301 sdlfuncs.c 1.51 1.52 sdlfuncs.h 1.30 1.31 Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv4098

    Modified Files:
    sdl_con.c sdlfuncs.c sdlfuncs.h
    Log Message:
    Stop using SDL mutexes and semaphores. The mutexes are recursive, and the semaphores sometomes have odd behaviour... just use the same mutexes and semaphores as everywhere else.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Sep 22 22:46:08 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/eb17b48c17a5b39ca39c2eba
    Modified Files:
    src/conio/sdl_con.c sdlfuncs.c sdlfuncs.h
    Log Message:
    Use SDL_GetWindowSizeInPixels, and don't resize when maximized

    Fixes sourceforge issue 126 (finally!)

    Apparently, macOS "maximized" is the same as "fullscreen" in SDL.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Oct 19 11:17:33 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/435d55d695ea0fd932adf997
    Modified Files:
    src/conio/sdl_con.c sdlfuncs.c sdlfuncs.h
    Log Message:
    More hacking to make macOS happy...

    Allow ALT+Arrow to resize from maximized by calling
    SDL_RestoreWindow() first. This should allow macOS users to escape
    the weird window size mess it can start in. Still no idea what is
    actually happening there, but this should at least provide an "out"
    now. :(

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net