Skip to content
Snippets Groups Projects
  1. Feb 04, 2024
  2. Feb 02, 2024
  3. Jan 31, 2024
  4. Jan 30, 2024
  5. Jan 29, 2024
    • Deucе's avatar
      Fix apparent session leak in services. · 3ffdef61
      Deucе authored
      It appears that after successful completion of a JS service, the
      TLS session is never destroyed.
      
      If this fix isn't valid for #707, we should see a bunch of
      "Destroying a session (...) that's not in sess_list" log messages
      
      Thanks Keyop!
      3ffdef61
    • Deucе's avatar
      Don't include rgbmap.h anymore. · bf1f9823
      Deucе authored
      bf1f9823
    • Deucе's avatar
      Save disk space at the expense of CPU usage. · 2ca1e4a0
      Deucе authored
      Previously, we compiled in a RGB -> YCbCr table and used that for
      scaling, which added 128MB to the size of binaries that enabled
      non-integer scaling.  The decision was then made to eliminated
      non-integer scaling support from the Synchronet utilities to save
      disk space.
      
      With the use of the YCoCg-R, we can more efficiently transform between
      the colour spaces, (about 50% more CPU than using the table), so
      it's no longer prohibitive to do this in real-time.
      
      This should also have the effect of making the Synchronet utilities
      use the correct aspect ratio for the various screen modes rather
      than forcing the use of square pixels.  I expect DigitalMan will
      hate that.
      2ca1e4a0
    • Deucе's avatar
    • Deucе's avatar
      Use the YCoCg-R colour space instead of YCbCr. · b7757abd
      Deucе authored
      It seems to provide similar perceptual results, and is much faster
      to transform with RGB.  It's still slower than the table lookup,
      but not crushingly so.
      b7757abd
    • Deucе's avatar
      Add fill and aliases... · e4c92087
      Deucе authored
      I think this is ready to start drawing things soon now.
      e4c92087
  6. Jan 28, 2024
  7. Jan 27, 2024
  8. Jan 26, 2024
    • Deucе's avatar
    • Deucе's avatar
      Eliminate extra semi-colon · b9deaa1c
      Deucе authored
      b9deaa1c
    • Deucе's avatar
    • Deucе's avatar
      Add globals for pos and child pos/size · 83b6db2a
      Deucе authored
      Start hacking on fit-checking code
      Add NI_walk_children() to call a callback for each child
      Move functions that have no generated bits into newifv_nongen.c
      Call the object set/get function for globals to allow range checking
      83b6db2a
    • Deucе's avatar
      Mark function static · d678aa50
      Deucе authored
      d678aa50
    • Deucе's avatar
      Initial start for NewIfc · 54ad128f
      Deucе authored
      Basically, the intent is to do a modern (for C) interface which
      allows reproducing the look and feel of uifc but without hurting
      as much.
      
      The intent is to support a tree of objects, each of which have
      an attribute get/set function as their main interface.
      
      Various callbacks will be supported for various object types, and
      positioning will be relative to the "child area" of the parent.
      
      The SyncTERM main screen is expected to look something like:
      root
      +--frame (dialing directory)
      |  +--list
      +--frame (settings)
      |  +--list
      +--textinput (comment)
      
      Internally, the code is wildly type-unsafe, but there's an
      auto-generated API (which is the only thing exported) that is
      type-safe.
      
      This also introduces the CuTest C test suite as an experiment.
      54ad128f
  9. Jan 25, 2024
  10. Jan 24, 2024
  11. Jan 23, 2024
    • Rob Swindell's avatar
      Fix uninitialized cfg.colors[] element usage caught by Deuce (and Clang?) · 0e5f80aa
      Rob Swindell authored
      Conditional jump or move depends on uninitialised value(s)
         at 0x4AE768D: sbbs_t::backfill(char const*, float, int, int) (con_out.cpp:1445)
         by 0x4AE7855: sbbs_t::progress(char const*, int, int, int) (con_out.cpp:1467)
         by 0x4AE91A9: ProgressLoadingMsgPtrs(void*, int, int) (data_ovl.cpp:27)
         by 0x4C7C577: getmsgptrs (userdat.c:3972)
         by 0x4AE9144: sbbs_t::getmsgptrs() (data_ovl.cpp:39)
         by 0x4BF9237: sbbs_t::logon() (logon.cpp:452)
         by 0x4AC1CE2: sbbs_t::answer() (answer.cpp:636)
         by 0x4C0FD37: node_thread(void*) (main.cpp:4277)
      
      Introduced in commit 48e7520e (when colors was converted from a byte array
      to a uint array), we weren't memsetting the right number of bytes.
      
      Since color is not an array of ints (not bytes), memset (of non-zero values)
      isn't really the right initialization approach anyway. Now using a for-loop.
      0e5f80aa
    • Rob Swindell's avatar
      If cryptInit() fails, just disable TLS support · ee26db3f
      Rob Swindell authored
      But continue initializing/running for other non-TLS protocol support.
      ee26db3f
Loading