Skip to content
Snippets Groups Projects
  1. May 02, 2023
    • Rob Swindell's avatar
      Fix another small memleak reported by valgrind: global hot keys · 4d1a66da
      Rob Swindell authored
      Not a huge deal, but there it is (or was).
      4d1a66da
    • Deucе's avatar
      Don't link in RGB <-> YUV tables by default. · 22f3d102
      Deucе authored
      Instead, have the r2yptr and y2rptr pointers that need to be set
      to those tables in order for interpolation to work.  Not setting one
      locks ciolib into "LCD" modes (everything uses square pixels), and
      XBR scaling is disabled.
      
      The CIOLIB_INTERPOLATE_OBJS make variable contains the path to the
      object file that contains those tables, so it's just a matter of
      some code and an extra (128MB) object to link against.
      22f3d102
  2. May 01, 2023
  3. Apr 30, 2023
    • Rob Swindell's avatar
      Fix typo · 95e4834e
      Rob Swindell authored
      95e4834e
    • Rob Swindell's avatar
      Fix '?' matches (needs tilde), add more expession/response sections · 6d9984f9
      Rob Swindell authored
      I don't think it would've even been possible to match these expressions without
      the tilde.
      6d9984f9
    • Rob Swindell's avatar
      A close-parenthesis in a guru.dat response string would throw-off the parser · 5fd4f1ca
      Rob Swindell authored
      After a negative-match of a Guru expression, we were searching for the next
      '(' anywhere in the subsequent chars of the file rather than just the next
      line that started with an open-parenthesis character.
      
      This bug was the secondary cause of the buffer-overflow crash addresseed in
      commit 62e2280e which was triggered by my recent updates to the guru.dat.
      5fd4f1ca
    • Deucе's avatar
      Some more GDI cleanup stuff... · 85aa5b03
      Deucе authored
      Create a proper aspect fix function
      Centre bitmap in window with correct aspect ratio
      Fix cursor at resize points
      Explicitly set high DPI awareness
      Don't snap window larger than allowed
      
      Since this is the newest/simplest display driver, I'm going to use
      this to decide how to do scaling in general so I can abstract that
      into shared code to ensure all drivers have the same scaling
      behaviour.
      
      I haven't tested mouse on windows with black bars yet though, so I
      assume that's broken...
      85aa5b03
    • Rob Swindell's avatar
      Fix memory leak in iniFreeParsedSections(), wasn't freeing the list member · b9e5efac
      Rob Swindell authored
      The 'list' member was allocated by iniParseSections() but never freed.
      
      Caught be Nelgin's recent valgrind report, e.g.:
      
      ==2725235== 56 bytes in 1 blocks are indirectly lost in loss record 82 of 191
      ==2725235==    at 0x484DCD3: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==2725235==    by 0x4FA351C: strListAnnex (in /home/bbs/sbbs/repo/src/sbbs3/gcc.linux.x64.lib.release/libsbbs.so)
      ==2725235==    by 0x4F9ADDE: iniParseSections (in /home/bbs/sbbs/repo/src/sbbs3/gcc.linux.x64.lib.release/libsbbs.so)
      ==2725235==    by 0x49F1F0A: read_chat_cfg (in /home/bbs/sbbs/repo/src/sbbs3/gcc.linux.x64.lib.release/libsbbs.so)
      ==2725235==    by 0x49E8BF1: load_cfg (in /home/bbs/sbbs/repo/src/sbbs3/gcc.linux.x64.lib.release/libsbbs.so)
      ==2725235==    by 0x5C14C75: ftp_server (in /home/bbs/sbbs/repo/src/sbbs3/gcc.linux.x64.lib.release/libftpsrvr.so)
      ==2725235==    by 0x5D5AB42: start_thread (pthread_create.c:442)
      ==2725235==    by 0x5DEBBB3: clone (clone.S:100)
      b9e5efac
    • Deucе's avatar
      Clear to black before drawing frame. · de4b8867
      Deucе authored
      Will be needed once scaling works properly.
      de4b8867
    • Deucе's avatar
      Final functionality features... · 3ac1ec71
      Deucе authored
      Load icon from resource file
      implement seticon()
      
      While the features are all there, some are buggy.  Scaling is wrong
      for example, and keyboard input may do weird things if shift or
      control are held when you take focus away from the window, then
      release them when the focus is elsewhere, then re-focus the window.
      This should only impact extended keys (ie: ones that don't send a
      character to the remote).
      3ac1ec71
    • Rob Swindell's avatar
      Fixes and additions · c60d9bae
      Rob Swindell authored
      c60d9bae
    • Deucе's avatar
      Implement mousepointer() · b15555cc
      Deucе authored
      b15555cc
  4. Apr 29, 2023
  5. Apr 28, 2023
    • Rob Swindell's avatar
      Fix new build error introduced with GDI support · 7f476aaf
      Rob Swindell authored
      unresolved external symbol _try_gdi_init referenced in function initciolib
      
      Function is dependent on WITH_GDI, not _WIN32
      7f476aaf
    • Deucе's avatar
      Clean up blinker thread · 24cb0a05
      Deucе authored
      There was a lot of weird things going on to avoid locking vstatlock
      inside of screenlock.  Simply this by copying needed vstat stuff
      while we hold the lock.
      24cb0a05
    • Deucе's avatar
      Add the worlds worst input processing · 38e7a398
      Deucе authored
      Also, get SyncTERM to stop displaying (null) as the mode.
      
      Video is very slow in the menus, and the input appears to repeat
      forever when connected (but *not* in the menus), but it's something
      at least.
      38e7a398
Loading