• src/conio/sdl_con.c

    From deuce@1:103/705 to CVS commit on Sat Feb 3 00:03:23 2018
    src/conio sdl_con.c 1.224 1.225
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv31425

    Modified Files:
    sdl_con.c
    Log Message:
    Use 32-bit RGB surfaces.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sat Feb 3 00:10:16 2018
    src/conio sdl_con.c 1.225 1.226
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv32111

    Modified Files:
    sdl_con.c
    Log Message:
    Request the current display depth rather than an emulated screen.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sat Feb 3 00:25:01 2018
    src/conio sdl_con.c 1.226 1.227
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv1191

    Modified Files:
    sdl_con.c
    Log Message:
    Only remap colours that have been added, not all colours. Fixes issue
    with palette redefinitions when the window scaling changes in SDL Surface mode.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sat Feb 3 00:27:54 2018
    src/conio sdl_con.c 1.227 1.228
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv1454

    Modified Files:
    sdl_con.c
    Log Message:
    Always call SDL_SetColors() from sdl_set_colours()... that's kinda the
    point of the function.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sat Feb 3 00:28:55 2018
    src/conio sdl_con.c 1.228 1.229
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv1561

    Modified Files:
    sdl_con.c
    Log Message:
    We need to call SDL_SetColors() before SDL_MapRGB() or we won't get our
    new colour.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 4 21:24:46 2018
    src/conio sdl_con.c 1.232 1.233
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv15704

    Modified Files:
    sdl_con.c
    Log Message:
    Don't wait for sdl_ufinc_rec semaphore on UPDATERECT calls...

    It's WAY too slow... the average latency per function is set by the SLEEP(1)
    on line 1641... I'm not sure we have a reliable cross-platform sleep more granular, and 1ms is too slow if we're doing individual pixels.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 4 21:44:43 2018
    src/conio sdl_con.c 1.233 1.234
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv18089

    Modified Files:
    sdl_con.c
    Log Message:
    Make a copy of vstat for the hot paths, avoid locking vstatlock there.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 4 21:56:12 2018
    src/conio sdl_con.c 1.234 1.235
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv19417

    Modified Files:
    sdl_con.c
    Log Message:
    SDL_USEREVENT_FLUSH is in the hot path too... and it really doesn't matter
    if it gets lost. The UPDATERECT does matter, but we'll see if lost events start happening again.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Mon Feb 5 20:17:42 2018
    src/conio sdl_con.c 1.241 1.242
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv20200

    Modified Files:
    sdl_con.c
    Log Message:
    Enable lost event detection for DRAWRECT and FLUSH again...

    Looks like we need to eat that performance cost.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Feb 6 18:56:47 2018
    src/conio sdl_con.c 1.242 1.243
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv12494

    Modified Files:
    sdl_con.c
    Log Message:
    Keep rectangles in a linked list until a flush is called. This keeps
    pressure off the event loop, avoids waiting for a response for each update,
    and keeps the existing event retry logic in place. It will also never
    re-send a rectangle any more, regardless of what happens.

    HOPEFULLY this will fix the SDL crap once and for all.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Feb 6 20:18:25 2018
    src/conio sdl_con.c 1.243 1.244
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv20406

    Modified Files:
    sdl_con.c
    Log Message:
    Tighten up the sdl_ufunc_ret semaphore, ensure it's not already posted
    before waiting for it.

    Flush doesn't need to sdl_ufunc_ret semaphore anymore since it places rectangles back in the list on failure

    Only enable SDL_SYSWMEVENT (a main cause of issues) during copy/paste operations. This should mostly elimiate timeouts and odd 1-second pasues during initialization on Linux.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Feb 7 14:43:05 2018
    src/conio sdl_con.c 1.244 1.245
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv22970

    Modified Files:
    sdl_con.c
    Log Message:
    Fix various classes of use after free bugs...

    The biggest one is if a lost event is re-sent, we now LEAK whatever's in data1/data2 rather than the pervious case where we would use it after
    free if it was delivered more than once.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Thu Feb 8 12:26:07 2018
    src/conio sdl_con.c 1.245 1.246
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv10943

    Modified Files:
    sdl_con.c
    Log Message:
    Only use the ufunc_rec semaphore when we're going to need it... fixes
    long delays on Win32.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Thu Feb 8 12:46:54 2018
    src/conio sdl_con.c 1.246 1.247
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv13026

    Modified Files:
    sdl_con.c
    Log Message:
    Since we're batching updates now, stop tracking all the updated rects and
    just use SDL_Flip().



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Thu Feb 8 16:40:04 2018
    src/conio sdl_con.c 1.247 1.248
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv7682

    Modified Files:
    sdl_con.c
    Log Message:
    Fix all kinds of palette related unlikely bugs.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Thu Feb 8 22:09:06 2018
    src/conio sdl_con.c 1.248 1.249
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv12222

    Modified Files:
    sdl_con.c
    Log Message:
    Fix SDL palette setting.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Thu Feb 8 22:16:45 2018
    src/conio sdl_con.c 1.249 1.250
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv13170

    Modified Files:
    sdl_con.c
    Log Message:
    Heh, index isn't a uint16_t



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Fri Feb 9 00:13:31 2018
    src/conio sdl_con.c 1.250 1.251
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv27217

    Modified Files:
    sdl_con.c
    Log Message:
    vstat.scaling MUST always equal 2 for overlay mode to work.

    Also fix some crazy dereference gibberish.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 11 22:45:46 2018
    src/conio sdl_con.c 1.252 1.253
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv22178

    Modified Files:
    sdl_con.c
    Log Message:
    Fix error releasing the headlock.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 11 22:47:11 2018
    src/conio sdl_con.c 1.253 1.254
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv22445

    Modified Files:
    sdl_con.c
    Log Message:
    Don't free rectlist in the driver.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 11 23:06:40 2018
    src/conio sdl_con.c 1.254 1.255
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv24984

    Modified Files:
    sdl_con.c
    Log Message:
    Ensure tail is set when the head is initialized.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Feb 13 11:37:52 2018
    src/conio sdl_con.c 1.257 1.258
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv14491

    Modified Files:
    sdl_con.c
    Log Message:
    Use integer math for RGB -> YUV conversion.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Feb 13 12:02:23 2018
    src/conio sdl_con.c 1.258 1.259
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv16960

    Modified Files:
    sdl_con.c
    Log Message:
    Some more minor optimizations



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Feb 20 13:17:35 2018
    src/conio sdl_con.c 1.260 1.261
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv3875

    Modified Files:
    sdl_con.c
    Log Message:
    Some minor issues
    --coverity


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Mar 26 18:06:02 2018
    src/conio sdl_con.c 1.261 1.262
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv20144

    Modified Files:
    sdl_con.c
    Log Message:
    Fix GCC warning:
    sdl_con.c: In function ΓÇÿsdl_mouse_threadΓÇÖ:
    sdl_con.c:1424:1: warning: no return statement in function returning non-void



    --- SBBSecho 3.03-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Fri May 31 17:22:52 2019
    src/conio sdl_con.c 1.262 1.263
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv11840

    Modified Files:
    sdl_con.c
    Log Message:
    The key normally used for "Backspace" (on a PC keyboard) is labeled "Delete"
    on a Mac keyboard and although that key sends the ASCII DEL char (127), we're converting it to backspace (^H) here. But if the user actually wants the "delete character" key functionality, there is no dedicated key, so treat Ctrl-Delete (on a Mac) as Delete (not backspace).


    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Jul 10 18:11:13 2019
    src/conio sdl_con.c 1.263 1.264
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv31657/conio

    Modified Files:
    sdl_con.c
    Log Message:
    Fix 40-col doubling to modify vstat with the vstatlock held rather than just cvstat.



    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Jul 10 18:55:38 2019
    src/conio sdl_con.c 1.264 1.265
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv4577

    Modified Files:
    sdl_con.c
    Log Message:
    Blank existing window before calling SetVideoMode() again.



    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Mar 31 16:28:11 2020
    src/conio sdl_con.c 1.267 1.268
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv655

    Modified Files:
    sdl_con.c
    Log Message:
    Remove unused variable.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Apr 1 15:07:31 2020
    src/conio sdl_con.c 1.270 1.271
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv21111

    Modified Files:
    sdl_con.c
    Log Message:
    Fixup termination, and always lock the mutex before fiddling with the window

    Previously, an atexit() function could call exit() (for non-SyncTERM utils) causing the program to occasionally crash rather than exit cleanly.


    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Apr 1 16:29:11 2020
    src/conio sdl_con.c 1.271 1.272
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv4292

    Modified Files:
    sdl_con.c
    Log Message:
    Set the window size when setup_surfaces() is called.
    This allows the saved scaling to work again, and makes the mouse not weird
    when scaling is secretly set differently.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Apr 1 17:37:52 2020
    src/conio sdl_con.c 1.272 1.273
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv15252

    Modified Files:
    sdl_con.c
    Log Message:
    The update rectangle applies to both the texture and the renderer, not just
    the renderer. Fixes crash when there's fewer screen pixels than in the
    window.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Mon Apr 13 00:01:39 2020
    src/conio sdl_con.c 1.278 1.279
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv11577

    Modified Files:
    sdl_con.c
    Log Message:
    Always destroy the texture before creating a new one.
    Derp.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Apr 15 11:52:04 2020
    src/conio sdl_con.c 1.280 1.281
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv9227

    Modified Files:
    sdl_con.c
    Log Message:
    Double both height and width when switching to 40 column mode.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Apr 15 15:29:33 2020
    src/conio sdl_con.c 1.281 1.282
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv16882

    Modified Files:
    sdl_con.c
    Log Message:
    Update input translation for SDL2...
    Hopefully this fixes the issue Ragnorok was reporting with a Spanish
    keyboard.


    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Apr 15 15:39:46 2020
    src/conio sdl_con.c 1.282 1.283
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv18737

    Modified Files:
    sdl_con.c
    Log Message:
    I take that last back... this likely won't fix anything... SDL2 just has
    a major regression for key input. :(



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Apr 15 17:02:24 2020
    src/conio sdl_con.c 1.283 1.284
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv7299

    Modified Files:
    sdl_con.c
    Log Message:
    Overhaul input yet again... this *should* fix Ragnorok's problem... but
    *may* break all sorts of other things.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ragnarok@1:103/705 to deuce on Wed Apr 15 22:57:09 2020
    El 15/4/20 a las 21:02, deuce escribi├│:
    src/conio sdl_con.c 1.283 1.284
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv7299

    Modified Files:
    sdl_con.c
    Log Message:
    Overhaul input yet again... this *should* fix Ragnorok's problem... but
    *may* break all sorts of other things.

    realy break!
    i move o up/down/let/right and segfault

    Starting program: /home/ragnarok/src/ftoledo/sbbs/cvs/src/syncterm/gcc.linux.x64.exe.debug/syncterm

    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [New Thread 0x7ffff6479700 (LWP 3417)]
    [Thread 0x7ffff6479700 (LWP 3417) exited]
    [New Thread 0x7fffe8015700 (LWP 3418)]
    [New Thread 0x7fffe7814700 (LWP 3419)]
    [New Thread 0x7fffe7013700 (LWP 3420)]
    [New Thread 0x7fffe6812700 (LWP 3421)]

    Thread 4 "Main Thread" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7fffe7814700 (LWP 3419)]
    0x00005555556f3811 in sdl_video_event_thread (data=0x0) at sdl_con.c:836
    836 if (block_text || !isprint(ev.key.keysym.sym))
    (gdb) bt
    #0 0x00005555556f3811 in sdl_video_event_thread (data=0x0) at sdl_con.c:836
    #1 0x00007ffff705e4a4 in start_thread (arg=0x7fffe7814700) at pthread_create.c:456
    #2 0x00007ffff6da0d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

    also (previous this last commits) i fond that hang when try to play bell
    sound i think:

    (gdb) bt
    #0 __lll_lock_wait () at
    ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    #1 0x00007ffff7060bb5 in __GI___pthread_mutex_lock
    (mutex=0x555555c230c0 <sample_mutex>) at ../nptl/pthread_mutex_lock.c:80
    #2 0x000055555570f805 in xp_play_sample (
    sample=0x555555bf1440 <wave> "~\177\177\200\200\201\201\200\200\177}zywvuuuuvvuuutrqqppoooppponljhfdcbbcfhlpx|z\202\210\211\210\203zria[VSSSSUUUSQMIE@><;;<>>>;81*!\031\020\n\a\a\f\023\037+;^ly\202\210\212\207\203|skb\\VTRSSUUTTQNIEB><<;<>>=<81*\"\031\021\v\b\a\v\022\034+8[kw\202\210\212\210\204}tkc]WSRRSUUUTRNJFA><;;<=>?<92+$\033\022\f\b\006\n\020\034("...,
    size=2205, background=1) at xpbeep.c:924
    #3 0x00005555556f4237 in sdl_beep () at sdl_con.c:1052
    #4 0x00005555556d7403 in ciolib_beep () at ciolib.c:1716
    #5 0x00005555556d6af9 in ciolib_putch (ch=7) at ciolib.c:1515
    #6 0x00005555556eb1c0 in cterm_write (cterm=0x555555e61870, vbuf=0x7fffffff4f10, buflen=4, retbuf=0x555555bc3300 <ansi_replybuf> "", retsize=2048,
    speed=0x7fffffff4efc) at cterm.c:5197
    #7 0x0000555555584da4 in doterm (bbs=0x555555bbc040 <retlist>) at
    term.c:2579
    #8 0x00005555555912cc in main (argc=1, argv=0x7fffffffdea8) at
    syncterm.c:1673
    (gdb) c
    Continuing.
    [Thread 0x7fffe56d0700 (LWP 31011) exited]
    c^C
    Thread 1 "Main Thread" received signal SIGINT, Interrupt.
    __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    135 in ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
    (gdb) bt
    #0 __lll_lock_wait () at
    ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    #1 0x00007ffff7060bb5 in __GI___pthread_mutex_lock
    (mutex=0x555555c230c0 <sample_mutex>) at ../nptl/pthread_mutex_lock.c:80
    #2 0x000055555570f805 in xp_play_sample (
    sample=0x555555bf1440 <wave> "~\177\177\200\200\201\201\200\200\177}zywvuuuuvvuuutrqqppoooppponljhfdcbbcfhlpx|z\202\210\211\210\203zria[VSSSSUUUSQMIE@><;;<>>>;81*!\031\020\n\a\a\f\023\037+;^ly\202\210\212\207\203|skb\\VTRSSUUTTQNIEB><<;<>>=<81*\"\031\021\v\b\a\v\022\034+8[kw\202\210\212\210\204}tkc]WSRRSUUUTRNJFA><;;<=>?<92+$\033\022\f\b\006\n\020\034("...,
    size=2205, background=1) at xpbeep.c:924
    #3 0x00005555556f4237 in sdl_beep () at sdl_con.c:1052
    #4 0x00005555556d7403 in ciolib_beep () at ciolib.c:1716
    #5 0x00005555556d6af9 in ciolib_putch (ch=7) at ciolib.c:1515
    #6 0x00005555556eb1c0 in cterm_write (cterm=0x555555e61870, vbuf=0x7fffffff4f10, buflen=4, retbuf=0x555555bc3300 <ansi_replybuf> "", retsize=2048,
    speed=0x7fffffff4efc) at cterm.c:5197
    #7 0x0000555555584da4 in doterm (bbs=0x555555bbc040 <retlist>) at
    term.c:2579
    #8 0x00005555555912cc in main (argc=1, argv=0x7fffffffdea8) at
    syncterm.c:1673
    (gdb) c
    Continuing.


    Saludos! and thanks!



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


    ---
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ragnarok on Wed Apr 15 21:07:07 2020
    Re: Re: src/conio/sdl_con.c
    By: Ragnarok to deuce on Wed Apr 15 2020 10:57 pm

    El 15/4/20 a las 21:02, deuce escribió:
    src/conio sdl_con.c 1.283 1.284
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv7299

    Modified Files:
    sdl_con.c
    Log Message:
    Overhaul input yet again... this *should* fix Ragnorok's problem... but *may* break all sorts of other things.

    realy break!
    i move o up/down/let/right and segfault

    Starting program: /home/ragnarok/src/ftoledo/sbbs/cvs/src/syncterm/gcc.linux.x6 4.exe.debug/syncterm

    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff6479700 (LWP 3417)]
    [Thread 0x7ffff6479700 (LWP 3417) exited]
    [New Thread 0x7fffe8015700 (LWP 3418)]
    [New Thread 0x7fffe7814700 (LWP 3419)]
    [New Thread 0x7fffe7013700 (LWP 3420)]
    [New Thread 0x7fffe6812700 (LWP 3421)]

    Thread 4 "Main Thread" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe7814700 (LWP 3419)]
    0x00005555556f3811 in sdl_video_event_thread (data=0x0) at sdl_con.c:836
    836 if (block_text ||
    !isprint(ev.key.keysym.sym))
    (gdb) bt
    #0 0x00005555556f3811 in sdl_video_event_thread (data=0x0) at sdl_con.c:836 #1 0x00007ffff705e4a4 in start_thread (arg=0x7fffe7814700) at pthread_create.c:456
    #2 0x00007ffff6da0d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

    also (previous this last commits) i fond that hang when try to play bell sound i think:

    (gdb) bt
    #0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    #1 0x00007ffff7060bb5 in __GI___pthread_mutex_lock
    (mutex=0x555555c230c0 <sample_mutex>) at ../nptl/pthread_mutex_lock.c:80
    #2 0x000055555570f805 in xp_play_sample (
    sample=0x555555bf1440 <wave> "~\177\177\200\200\201\201\200\200\177}zywvuuu uvvuuutrqqppoooppponljhfdcbbc fhlpx|z\202\210\211\210\203zria[VSSSSUUUSQMIE@><;; <>>>;81*!\031\020\n\a\a\f \023\037+;^ly\202\210\212\207\203|skb\\VTRSSUUTTQNIEB> <<;<>>=<81*\"\031\021 \v\b\a\v\022\034+8[kw\202\210\212\210\204}tkc]WSRRSUUUTRNJ FA><;;<=>?<92+$\033\022\f\b\006\n\020\034("...,
    size=2205, background=1) at xpbeep.c:924
    #3 0x00005555556f4237 in sdl_beep () at sdl_con.c:1052
    #4 0x00005555556d7403 in ciolib_beep () at ciolib.c:1716
    #5 0x00005555556d6af9 in ciolib_putch (ch=7) at ciolib.c:1515
    #6 0x00005555556eb1c0 in cterm_write (cterm=0x555555e61870, vbuf=0x7fffffff4f10, buflen=4, retbuf=0x555555bc3300 <ansi_replybuf> "", retsize=2048,
    speed=0x7fffffff4efc) at cterm.c:5197
    #7 0x0000555555584da4 in doterm (bbs=0x555555bbc040 <retlist>) at term.c:2579
    #8 0x00005555555912cc in main (argc=1, argv=0x7fffffffdea8) at syncterm.c:1673
    (gdb) c
    Continuing.
    [Thread 0x7fffe56d0700 (LWP 31011) exited]
    c^C
    Thread 1 "Main Thread" received signal SIGINT, Interrupt.
    __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135 135 in ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
    (gdb) bt
    #0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    #1 0x00007ffff7060bb5 in __GI___pthread_mutex_lock
    (mutex=0x555555c230c0 <sample_mutex>) at ../nptl/pthread_mutex_lock.c:80
    #2 0x000055555570f805 in xp_play_sample (
    sample=0x555555bf1440 <wave> "~\177\177\200\200\201\201\200\200\177}zywvuuu uvvuuutrqqppoooppponljhfdcbbc fhlpx|z\202\210\211\210\203zria[VSSSSUUUSQMIE@><;; <>>>;81*!\031\020\n\a\a\f \023\037+;^ly\202\210\212\207\203|skb\\VTRSSUUTTQNIEB> <<;<>>=<81*\"\031\021 \v\b\a\v\022\034+8[kw\202\210\212\210\204}tkc]WSRRSUUUTRNJ FA><;;<=>?<92+$\033\022\f\b\006\n\020\034("...,
    size=2205, background=1) at xpbeep.c:924
    #3 0x00005555556f4237 in sdl_beep () at sdl_con.c:1052
    #4 0x00005555556d7403 in ciolib_beep () at ciolib.c:1716
    #5 0x00005555556d6af9 in ciolib_putch (ch=7) at ciolib.c:1515
    #6 0x00005555556eb1c0 in cterm_write (cterm=0x555555e61870, vbuf=0x7fffffff4f10, buflen=4, retbuf=0x555555bc3300 <ansi_replybuf> "", retsize=2048,
    speed=0x7fffffff4efc) at cterm.c:5197
    #7 0x0000555555584da4 in doterm (bbs=0x555555bbc040 <retlist>) at term.c:2579
    #8 0x00005555555912cc in main (argc=1, argv=0x7fffffffdea8) at syncterm.c:1673
    (gdb) c
    Continuing.


    Saludos! and thanks!

    I don't think Deuce is going to see your message here without being directed to
    it. I'll try to direct him to it.

    digital man

    Synchronet/BBS Terminology Definition #17:
    DCD = Data Carrier Detect
    Norco, CA WX: 64.4°F, 45.0% humidity, 5 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Thu Apr 16 05:14:50 2020
    src/conio sdl_con.c 1.284 1.285
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv353

    Modified Files:
    sdl_con.c
    Log Message:
    isprint() segfaults if the argument is greater than some locale-dependent value.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Thu Apr 16 05:17:04 2020
    src/conio sdl_con.c 1.285 1.286
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv1002

    Modified Files:
    sdl_con.c
    Log Message:
    Right, but we still need isprint() (even on Linux)



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ragnarok on Thu Apr 16 11:22:41 2020
    Re: Re: src/conio/sdl_con.c
    By: Digital Man to Ragnarok on Wed Apr 15 2020 09:07 pm

    I don't think Deuce is going to see your message here without being directed to it. I'll try to direct him to it.

    <@Deuce> DigitalMan, if you could point him at the bug tracker on SourceForge, that is the best place to report SyncTERM bugs.

    digital man

    This Is Spinal Tap quote #28:
    We've got Armadillos in our trousers. It's really quite frightening.
    Norco, CA WX: 68.3°F, 38.0% humidity, 3 mph SSE wind, 0.00 inches rain/24hrs --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Fri Apr 17 10:15:26 2020
    src/conio sdl_con.c 1.288 1.289
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv19397

    Modified Files:
    sdl_con.c
    Log Message:
    Return the UTF-8 clipboard test.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ragnarok@1:103/705 to Digital Man on Fri Apr 17 20:43:36 2020
    El 16/4/20 a las 01:07, Digital Man escribi├│:
    Re: Re: src/conio/sdl_con.c
    By: Ragnarok to deuce on Wed Apr 15 2020 10:57 pm

    El 15/4/20 a las 21:02, deuce escribi�:
    src/conio sdl_con.c 1.283 1.284
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv7299

    Modified Files:
    sdl_con.c
    Log Message:
    Overhaul input yet again... this *should* fix Ragnorok's problem... but *may* break all sorts of other things.

    realy break!
    i move o up/down/let/right and segfault

    Starting program: /home/ragnarok/src/ftoledo/sbbs/cvs/src/syncterm/gcc.linux.x6 4.exe.debug/syncterm

    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff6479700 (LWP 3417)]
    [Thread 0x7ffff6479700 (LWP 3417) exited]
    [New Thread 0x7fffe8015700 (LWP 3418)]
    [New Thread 0x7fffe7814700 (LWP 3419)]
    [New Thread 0x7fffe7013700 (LWP 3420)]
    [New Thread 0x7fffe6812700 (LWP 3421)]

    Thread 4 "Main Thread" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe7814700 (LWP 3419)]
    0x00005555556f3811 in sdl_video_event_thread (data=0x0) at sdl_con.c:836 836 if (block_text ||
    !isprint(ev.key.keysym.sym))
    (gdb) bt
    #0 0x00005555556f3811 in sdl_video_event_thread (data=0x0) at
    sdl_con.c:836
    #1 0x00007ffff705e4a4 in start_thread (arg=0x7fffe7814700) at pthread_create.c:456
    #2 0x00007ffff6da0d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

    also (previous this last commits) i fond that hang when try to play bell sound i think:

    (gdb) bt
    #0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    #1 0x00007ffff7060bb5 in __GI___pthread_mutex_lock
    (mutex=0x555555c230c0 <sample_mutex>) at ../nptl/pthread_mutex_lock.c:80 #2 0x000055555570f805 in xp_play_sample (
    sample=0x555555bf1440 <wave> "~\177\177\200\200\201\201\200\200\177}zywvuuu
    uvvuuutrqqppoooppponljhfdcbbc
    fhlpx|z\202\210\211\210\203zria[VSSSSUUUSQMIE@><;;
    <>>>;81*!\031\020\n\a\a\f
    \023\037+;^ly\202\210\212\207\203|skb\\VTRSSUUTTQNIEB>
    <<;<>>=<81*\"\031\021
    \v\b\a\v\022\034+8[kw\202\210\212\210\204}tkc]WSRRSUUUTRNJ FA><;;<=>?<92+$\033\022\f\b\006\n\020\034("...,
    size=2205, background=1) at xpbeep.c:924
    #3 0x00005555556f4237 in sdl_beep () at sdl_con.c:1052
    #4 0x00005555556d7403 in ciolib_beep () at ciolib.c:1716
    #5 0x00005555556d6af9 in ciolib_putch (ch=7) at ciolib.c:1515
    #6 0x00005555556eb1c0 in cterm_write (cterm=0x555555e61870, vbuf=0x7fffffff4f10, buflen=4, retbuf=0x555555bc3300 <ansi_replybuf> "", retsize=2048,
    speed=0x7fffffff4efc) at cterm.c:5197
    #7 0x0000555555584da4 in doterm (bbs=0x555555bbc040 <retlist>) at term.c:2579
    #8 0x00005555555912cc in main (argc=1, argv=0x7fffffffdea8) at syncterm.c:1673
    (gdb) c
    Continuing.
    [Thread 0x7fffe56d0700 (LWP 31011) exited]
    c^C
    Thread 1 "Main Thread" received signal SIGINT, Interrupt.
    __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135 135 in ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
    (gdb) bt
    #0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    #1 0x00007ffff7060bb5 in __GI___pthread_mutex_lock
    (mutex=0x555555c230c0 <sample_mutex>) at ../nptl/pthread_mutex_lock.c:80 #2 0x000055555570f805 in xp_play_sample (
    sample=0x555555bf1440 <wave> "~\177\177\200\200\201\201\200\200\177}zywvuuu
    uvvuuutrqqppoooppponljhfdcbbc
    fhlpx|z\202\210\211\210\203zria[VSSSSUUUSQMIE@><;;
    <>>>;81*!\031\020\n\a\a\f
    \023\037+;^ly\202\210\212\207\203|skb\\VTRSSUUTTQNIEB>
    <<;<>>=<81*\"\031\021
    \v\b\a\v\022\034+8[kw\202\210\212\210\204}tkc]WSRRSUUUTRNJ FA><;;<=>?<92+$\033\022\f\b\006\n\020\034("...,
    size=2205, background=1) at xpbeep.c:924
    #3 0x00005555556f4237 in sdl_beep () at sdl_con.c:1052
    #4 0x00005555556d7403 in ciolib_beep () at ciolib.c:1716
    #5 0x00005555556d6af9 in ciolib_putch (ch=7) at ciolib.c:1515
    #6 0x00005555556eb1c0 in cterm_write (cterm=0x555555e61870, vbuf=0x7fffffff4f10, buflen=4, retbuf=0x555555bc3300 <ansi_replybuf> "", retsize=2048,
    speed=0x7fffffff4efc) at cterm.c:5197
    #7 0x0000555555584da4 in doterm (bbs=0x555555bbc040 <retlist>) at term.c:2579
    #8 0x00005555555912cc in main (argc=1, argv=0x7fffffffdea8) at syncterm.c:1673
    (gdb) c
    Continuing.


    Saludos! and thanks!

    I don't think Deuce is going to see your message here without being directed
    to it. I'll try to direct him to it.

    digital man

    ok!! my apologies! where is the better path to report bugs to syncterm?

    ---
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ragnarok on Fri Apr 17 18:47:10 2020
    Re: Re: src/conio/sdl_con.c
    By: Ragnarok to Digital Man on Fri Apr 17 2020 08:43 pm

    I don't think Deuce is going to see your message here without being directed to it. I'll try to direct him to it.

    ok!! my apologies! where is the better path to report bugs to syncterm?

    https://sourceforge.net/p/syncterm/tickets/

    digital man

    Synchronet "Real Fact" #41:
    Synchronet's cross-platform library is called XPDEV (named before Windows XP). Norco, CA WX: 60.8°F, 67.0% humidity, 8 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Mon Apr 20 14:46:21 2020
    src/conio sdl_con.c 1.290 1.291
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv5914

    Modified Files:
    sdl_con.c
    Log Message:
    Translate non-printing input characters using the codepage, don't assume anything that doesn't print is "fine".



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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).



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ragnarok@1:103/705 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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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/



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 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.



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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-numbersMake an exception for all keypad stuff. --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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.
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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 SDL2This is pretty insane since SDL2 completely ignores the keysym valueof the X11 keyboard event, so here's what we do...1) When there's a
    keypress that includes right-alt, store the sym/mod2) 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 pretendingit doesn't exist at all for key input is a very weird choice.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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 youwant.This was discovered when I was trying to make DigitalMan happybecause he wanted the apsect ratio retained on scaling.Sorry for the impending imminent scaling hassle DigitalMan!
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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 aspectratio enforcement means that ALT-UP and ALT-DOWN are
    useless forresizing the window unless it's not already snapped... use ALT-LEFTand ALT-RIGHT to decrease/increase the window size.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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 thewindow to be scaled.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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'tfeel like digging into however one uses manifest files when notusing the Microsoft build files.Details here: https://docs.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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 queueSet 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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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 upsdl_setwinsize()
    and eliminate another race.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Fri Feb 10 19:12:31 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/f47c60792c13c8bd9c4e67c4
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Fix a couple issues found by Coverity1) Unreachable return without a lock in sdl_useR_func_ret() (harmless)2) LOR in handling SDL_USEREVENT - vstatlock was obtained inside of win_mutex which should never be done... this could (and likely does) result in a deadlock when using SDL mode.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Apr 20 15:12:48 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/6369925c868a8a9485e6627f
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Use a local vstat copy instead of cvstat to avoid holding the lockfor an extended time. Should fix SDL mode slowness.Only call RenderPresent() if we called RenderCopy(). Should fixSDL mode flickering.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Apr 20 16:00:27 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/f06029a3889734491909ebe9
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Add TODO comment for cvstat.When originally created, it was intended to be accessed only by asingle thread, and therefore not need mutex protection, allowingless code to run with vstatlock held. Unfortunately, this is nothow it
    turned out, so cvstat should either be removed, or it shouldactually be cleaned
    up to work as intended.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Fri Apr 21 10:26:55 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/fdce00a456a33dc858067aef
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Push cvstat into sdl_video_event_thread() stackThis makes cvstat work as intended, so we no longer need to lockvstatlock when accessing it since it's only accessed from thevideo event thread.There's still an irritating dependency
    on vstat for ALT-Enter handling.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Fri Apr 21 10:26:55 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/22c8b09f824496b7c68e599e
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Get vstat out of sdl_add_key() pathThis should almost completely remove vstatlock contention in SyncTERM,which should bring SDL output performance close to X11 performance.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Tue Apr 25 09:41:15 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/832871707fc3f2d37ff1891d
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    On a window resize event, only set the window size if it's differentFixes issue
    on Linux where the window size is constantly updated,and window rabidly steals focus.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Wed Apr 26 10:39:20 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/defc638c9f1cc95ca234a780
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Check SDL window size when checking if size changed.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sat Apr 29 10:42:01 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/47977472de4bfce66f1bd4d1
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Don't treat numpad /*-+ differently based on NumLock in SDLThis caused double-keys on those when numlock was off. Only thenumber keys and period need
    special NumLock handling.Fixes bug 108 on SourceForge, thanks nelgin!
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu May 4 07:21:50 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/9137e82c9afa91f0c0647c70
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Fix warnings reported by Digitalman
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Fri May 5 21:29:01 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/875c77ea0bc774be2c2a4f67
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Resolve GCC warnings: cast from pointer to integer of different sizePretty sure
    this is what intptr_t was created for.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun May 14 20:26:56 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/4af4effb3148c0c695e56ad1
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Fix deadlock in SDL mode.sdl_getscaling() does not require vstatlock. Move it out.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Jun 1 13:58:12 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/978d4d0b7b64a39a30092e57
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Use cast instead of pointer math to fix Win32 build
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sat Jun 3 18:14:04 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/268893cc9b77f7e96343bb11
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    When switching from fullscreen mode, recalculate win size.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sat Feb 17 10:36:15 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/7c44187868e59355f598180a
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    For SDL mode, ensure rect matches vstat as well.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Mar 17 12:29:59 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/960cee2703cd4650f2805d4f
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Do not attempt to clean up SDL unless it was initialized.

    Should fix js test suite on darwin.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Mar 17 14:30:07 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/d281862b290f8ee309892e63
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Call exit() from exit_sdl_con if ciolib_reaper is enabled and SDL is not initialized.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Mar 17 14:31:06 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/ea900928153cef278cf404bc
    Modified Files:
    src/conio/sdl_con.c
    Log Message:
    Revert last change reaper is explicitly disabled here.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)