Skip to content
Snippets Groups Projects
  1. May 03, 2023
    • Deucе's avatar
      Also fail if GetModuleHandleW(NULL) fails. · 30cc8cb4
      Deucе authored
      30cc8cb4
    • Deucе's avatar
      Add SDL_win32_main.c to needed files · 1366dfff
      Deucе authored
      1366dfff
    • Deucе's avatar
      Make gdi_initcilib() return status on failure. · a0311d93
      Deucе authored
      This should allow fall-through to SDL and win32 console if possible.
      a0311d93
    • Deucе's avatar
      Make binaries linked with conio Windows binaries. · dfb84bf4
      Deucе authored
      jsexec is an extra weird case though, so don't touch that one for
      now... I assume it'll just break as-is, but maybe it'll work...
      Certainly gdi_ciolibinit() needs better error detection.
      dfb84bf4
    • Deucе's avatar
      And add xbr.c as well · ca4d60da
      Deucе authored
      ca4d60da
    • Deucе's avatar
      Add stuff to the SDL things too · c2e58db0
      Deucе authored
      c2e58db0
    • Deucе's avatar
      Hack in some things... · a453e3b6
      Deucе authored
      a453e3b6
    • Deucе's avatar
      Remove -iWF as an option in SyncTERM · efca4999
      Deucе authored
      Full-screen console doesn't scale anymore on modern Windows, so this
      flag is worse than useless.
      efca4999
    • Deucе's avatar
      Eliminate GDI scaling. It's ugly and I hate it. · f7a7f3e9
      Deucе authored
      Also, fix up window behaviour... allow dragging it larger and smaller,
      disable maximize, and don't allow snapping bigger or smaller than
      the user area.
      
      Finally, when r2y tables aren't installed, set the aspect ratio to
      xsize x ysize so all the aspect "stuff" works properly.
      
      With this, GDI is now the default output mode for Windows.  Auto
      order is now:
      
      X11 -> GDI -> SDL -> Win32 Console or Curses -> ANSI
      
      Now that GDI is self-contained, does not require SDL, and runs in
      a window, compile as a Windows application to prevent a console
      window from opening then closing at startup.  Win32 console mode
      now has to rely on AllocConsole(), which opens a new console
      window.  This is likely the best choice anyway since ciolib
      absolutely destroys your console settings, so that console is even
      less useful than the normal windows console after a utility runs.
      
      Maybe for 2.0 I'll do a Wayland and Core Graphics driver too. :D
      f7a7f3e9
    • Deucе's avatar
      Eliminate GDI scaling. It's ugly and I hate it. · d95b5e91
      Deucе authored
      Also, fix up window behaviour... allow dragging it larger and smaller,
      disable maximize, and don't allow snapping bigger or smaller than
      the user area.
      
      Finally, when r2y tables aren't installed, set the aspect ratio to
      xsize x ysize so all the aspect "stuff" works properly.
      
      With this, GDI is now the default output mode for Windows.  Auto
      order is now:
      
      X11 -> GDI -> SDL -> Win32 Console or Curses -> ANSI
      
      Maybe for 2.0 I'll do a Wayland and Core Graphics driver too. :D
      d95b5e91
  2. May 02, 2023
  3. May 01, 2023
  4. 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
  5. Apr 29, 2023
Loading