• src/conio/sdl_con.c

    From deuce@VERT to CVS commit on Sat Apr 25 10:26:00 2020
    src/conio sdl_con.c 1.292 1.293
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv5303

    Modified Files:
    sdl_con.c
    Log Message:
    Fix height calculation when changing modes.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Sat Apr 25 13:22:48 2020
    src/conio sdl_con.c 1.294 1.295
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv14138

    Modified Files:
    sdl_con.c
    Log Message:
    Move sdl.SetWindowMinimumSize() into appropropriate thread.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Sat Apr 25 14:11:12 2020
    src/conio sdl_con.c 1.295 1.296
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv4331

    Modified Files:
    sdl_con.c
    Log Message:
    Nope, putting it there doesn't work either... just do it before we
    change the window size and it should work out alright.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Mon Apr 27 18:02:53 2020
    src/conio sdl_con.c 1.297 1.298
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv30415

    Modified Files:
    sdl_con.c
    Log Message:
    Don't treat keysyms as though they are unicode (they aren't).




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Mon Apr 27 22:25:20 2020
    src/conio sdl_con.c 1.298 1.299
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv9464

    Modified Files:
    sdl_con.c
    Log Message:
    First attempt at getting AltGr working for ragnarok in SDL mode.
    The SDL wiki lists KMOD_MODE as AltGR... if that flag is flying in a
    keypress, do not block text input.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Mon Apr 27 23:35:25 2020
    src/conio sdl_con.c 1.299 1.300
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv20611

    Modified Files:
    sdl_con.c
    Log Message:
    Commit this for no good reason.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to deuce on Tue Apr 28 15:10:15 2020
    El 28/4/20 a las 02:25, deuce escribi¢:
    src/conio sdl_con.c 1.298 1.299
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv9464

    Modified Files:
    sdl_con.c
    Log Message:
    First attempt at getting AltGr working for ragnarok in SDL mode.
    The SDL wiki lists KMOD_MODE as AltGR... if that flag is flying in a keypress, do not block text input.

    YOU ARE the fucking king of the world of bbs terminals!


    . * .. . * *

    * * @()Ooc()* o .

    (Q@*0CG*O() ___

    |\_________/|/ _ \

    | | | | | / | |

    | | | | | | | |

    | | | | | | | |

    | | | | | | | |

    | | | | | | | |

    | | | | | \_| |

    | | | | |\___/
    |\_|__|__|_/|

    \_________/



    work perfect!!!!!!!!!!!!

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From deuce@VERT to CVS commit on Wed Apr 29 11:00:52 2020
    src/conio sdl_con.c 1.302 1.303
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv28032

    Modified Files:
    sdl_con.c
    Log Message:
    Allow DEL key to work again.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri May 1 16:52:31 2020
    src/conio sdl_con.c 1.304 1.305
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv11032

    Modified Files:
    sdl_con.c
    Log Message:
    Remove debug output from last commit.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wed May 13 23:12:42 2020
    src/conio sdl_con.c 1.307 1.308
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv10188

    Modified Files:
    sdl_con.c
    Log Message:
    Fix error which caused keypad with NumLock on to send both the arrow and
    number to the remote.
    Fixes bug https://sourceforge.net/p/syncterm/tickets/15/




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Thu May 14 19:38:23 2020
    src/conio sdl_con.c 1.310 1.311
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv17007

    Modified Files:
    sdl_con.c
    Log Message:
    Support building with ancient versions of SDL2 from six years ago.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri May 15 04:24:29 2020
    src/conio sdl_con.c 1.311 1.312
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv413

    Modified Files:
    sdl_con.c
    Log Message:
    Work around issue in SDL2 (or OpenGL? Or nvidia driver?) where creating
    a new texture with the same address as a destroyed texture causes crashes.
    Just allocate the new texture before freeing the old one to prevent that
    from occuring.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri May 22 07:41:25 2020
    src/conio sdl_con.c 1.312 1.313
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv21104

    Modified Files:
    sdl_con.c
    Log Message:
    Clamp the rectangle height to the texture height when copying pixel data.
    May fix https://sf.net/p/syncterm/tickets/19/

    Please try to log in to SourceForge when creating issues or I won't be able
    to contact you with follow-up questions or get confirmation when an issue
    is resolved.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sun Mar 14 03:07:48 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/0634130f732643afcefe1b34
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Fix SF #44 problem keypad non-numbers

    Make an exception for all keypad stuff.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Wed Mar 17 13:38:49 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/248eb2b590cfc5dee387ad2c
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Special-case TAB so "backtab" works properly.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Fri Mar 19 11:05:12 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/1495774a066cb027a3d96cf7
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Fix AltGr with SDL2

    This is pretty insane since SDL2 completely ignores the keysym value
    of the X11 keyboard event, so here's what we do...

    1) When there's a keypress that includes right-alt, store the sym/mod
    2) When we get text input, if it's the same as we would get if ALT
    wasn't pressed for the last keydown, parse through the mapping
    (ie: handle ALT keys)
    3) If it's different, use that (gets AltGr modified value)

    I get that AltGr is hard in a cross-platform way, but just pretending
    it doesn't exist at all for key input is a very weird choice.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thu May 13 00:45:37 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/5f027c495b76aabf182c4905
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Keep correct aspect ratio when resizing window.

    Also, the 8x16 font at 80x25 is *not* a square pixel aspect ratio.
    As a result, it now stays "proper", which is likely not what you
    want.

    This was discovered when I was trying to make DigitalMan happy
    because he wanted the apsect ratio retained on scaling.

    Sorry for the impending imminent scaling hassle DigitalMan!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thu May 13 01:32:47 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/26def07178f2affe11442bf5
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    More fallout from non-square pixels...

    This fixes all the window adjustment "stuff", but the new aspect
    ratio enforcement means that ALT-UP and ALT-DOWN are useless for
    resizing the window unless it's not already snapped... use ALT-LEFT
    and ALT-RIGHT to decrease/increase the window size.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Fri May 14 16:13:00 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/9aca9bf4b603144ffb46a09f
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    sdl_con.c can have stdbool.h too.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Fri May 14 17:01:09 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/49756aa756b0570337da16e7
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Use lround(), not roundl().

    Also, include math.h

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Mon May 17 09:39:10 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/e7100fcbd1aae6959c38ee40
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Specify HighDPI mode when creating a window.

    This may solve issue where using Windows "DPI scaling" forces the
    window to be scaled.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Mon May 17 10:01:07 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/fccd7c1dd05309a672690d0d
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Use the API to insist SyncTERM is "High DPI aware"

    Microsoft wants us to use a manifest for this, but I really don't
    feel like digging into however one uses manifest files when not
    using the Microsoft build files.

    Details here: https://docs.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sun Dec 25 21:45:27 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/a194a15736de98517f48a9b3
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Various SDL fixes:

    Pass window size in SDL_USEREVENT_SETVIDMODE
    - Fixes race condition where SDL_WINDOWEVENT_RESIZED or
    SDL_WINDOWEVENT_SIZE_CHANGED arraves while
    SDL_USEREVENT_SETVIDMODE is in the queue

    Set new scaling based on old scaling multiplier
    - Will resize window on mode changes, but tries to keep integer
    multiplier similar. May break fullscreen modes, dunno.

    Have aspect_fix() return higher rather than lower
    - This may make it the same as aspect_correct(), but I'm too lazy
    to figure that out.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Mon Dec 26 00:38:10 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/2fa700696c34fb298fd24c7b
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Now that SDL_USEREVENT_SETVIDMODE takes a size, we can clean up sdl_setwinsize() and eliminate another race.

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