• src/uifc/uifc32.c

    From Randy Sommerfeld@VERT to Git commit to main/sbbs/master on Thursday, January 28, 2021 21:55:39
    https://gitlab.synchro.net/main/sbbs/-/commit/d8804c19b38e6b9618179129
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    fix display issue at noon

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Randy Sommerfeld@VERT to Git commit to main/sbbs/master on Thursday, January 28, 2021 22:00:07
    https://gitlab.synchro.net/main/sbbs/-/commit/1c13b8af9c94865338cf721a
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    fix typo

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Friday, January 29, 2021 01:16:04
    https://gitlab.synchro.net/main/sbbs/-/commit/6db9ad0ddeb49dcf85e09a24
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Splat.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Friday, January 29, 2021 01:26:50
    https://gitlab.synchro.net/main/sbbs/-/commit/1bddfdab40303e57122aa93d
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    i, of course, needs to be adjusted too.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Friday, January 29, 2021 01:36:12
    https://gitlab.synchro.net/main/sbbs/-/commit/2da95710623d330a22af766d
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Change bar fix...

    Instead of setting bar to zero when possible, set it to the number
    of displayed options, putting the lightbar at the bottom of the
    displayed list instead of at the top.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thursday, February 11, 2021 18:53:22
    https://gitlab.synchro.net/main/sbbs/-/commit/076d6f052ee56937c51915c0
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Fix initial bar calculation.

    After calculating i (offset in list to top of window), if it's less
    than zero, apply it to bar and set i = 0.

    Fixes #218

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, February 14, 2021 23:17:15
    https://gitlab.synchro.net/main/sbbs/-/commit/5aafe28ce1abd688dcd77b2d
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Re-work the string constant usage of utimestr()

    To make Coverity and my adult-self happy.

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Tuesday, March 16, 2021 21:36:19
    https://gitlab.synchro.net/main/sbbs/-/commit/54a63ad8a9a3b70a69f77276
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Allow showbuf buffers to be placed up against the status line.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wednesday, March 17, 2021 06:52:58
    https://gitlab.synchro.net/main/sbbs/-/commit/295ae39399693c75e0c8823c
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Small fixes for ugetstr()

    - Backtab also exits with K_TABEXIT when the string is selected
    - Backspace scrolls the text to the left of the cursor to the right
    if the left of the input is not the start of the string.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wednesday, March 31, 2021 13:57:15
    https://gitlab.synchro.net/main/sbbs/-/commit/a84bb2cfb52bd33e185b3bb3
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Fix glitch in showbuf window with odd-numbered width

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wednesday, March 31, 2021 23:05:25
    https://gitlab.synchro.net/main/sbbs/-/commit/7bbe3f0235a3293433e2bf3a
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Have showbuf() clamp width the same way as height...

    Basically, assume left is correct, and calculate the correct width
    to fill the screen to the esge.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, April 17, 2021 14:38:39
    https://gitlab.synchro.net/main/sbbs/-/commit/e0a055f18ab797025d83fb54
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Support WIN_ORG and WIN_BOT modes in uifc.input

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wednesday, May 19, 2021 18:27:56
    https://gitlab.synchro.net/main/sbbs/-/commit/adebb6393f05710e115daf0a
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Draw the shadow if the API bgcolor is blue

    WIN_INACT was not getting a border because it changes the value
    of bclr which is explicitly compared with BLUE to detect if a
    shadow should be drawn.

    Instead, draw a shadow any time it would normally be drawn.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thursday, February 10, 2022 16:14:59
    https://gitlab.synchro.net/main/sbbs/-/commit/4f28970f7ab92d55e38161f5
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Finish consitfying showbuf()

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thursday, February 10, 2022 16:23:52
    https://gitlab.synchro.net/main/sbbs/-/commit/af7b3efba80be0ded1250334
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Actually constify showbuf()

    Geeze, this is ugly.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thursday, March 03, 2022 11:29:28
    https://gitlab.synchro.net/main/sbbs/-/commit/5051ad349706be4e0254a0f2
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Left for showbuf() is zero-based, calculate width appropriately.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sunday, November 03, 2024 11:14:25
    https://gitlab.synchro.net/main/sbbs/-/commit/32fb9b77db11ec82231e4cee
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    More malloc() return checks

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wednesday, November 13, 2024 22:38:06
    https://gitlab.synchro.net/main/sbbs/-/commit/056304ed9e73c847a08102bb
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Fix bug reported by DigitalMan

    It looks like this has been a long-standing UIFC bug (pre-3.0)

    If a uifc list that can scroll is showing the bottom-most line,
    and an option that is not the last is deleted, and both *cur and
    *bar are left untouched, *bar would be adjusted to be too high,
    resulting in various highlight bar corruption issues.

    This commit just rewrites that logic to be comprehensible, and
    ensures that if bar is set such that the list would end before the
    bottom of the window, it gets moved up. This makes delete do the
    right thing (didn't test with insert, that may do weird things).

    Also, since I figured out a good definition of what bar actually
    represtens, add a comment to that effect.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wednesday, November 13, 2024 23:26:48
    https://gitlab.synchro.net/main/sbbs/-/commit/2e47ac987d5f1f1add45e5f7
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Just overhaul this who chunk of code.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Saturday, January 04, 2025 21:51:35
    https://gitlab.synchro.net/main/sbbs/-/commit/d63dd43c9b9a1cc24b268829
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Prevent dereferencing NULL bar or cur with WIN_DYN

    This would be an API violation, but we shouldn't crash about it.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, January 09, 2025 18:53:52
    https://gitlab.synchro.net/main/sbbs/-/commit/935afe75ac88dd8094e58e71
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Fix buffer overflow when upop() is called with a string > 73 chars

    result in segfault (e.g. adding long filenames using fileman.js)

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, January 09, 2025 20:22:12
    https://gitlab.synchro.net/main/sbbs/-/commit/d55686a5ef0d1f9706d17b18
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    A more complete fix for the upop() issue with long strings

    Completely remove the 80 column screen width assumption/limit.

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Tuesday, January 14, 2025 17:42:18
    https://gitlab.synchro.net/main/sbbs/-/commit/ad84aa032681df2b5a7eb06d
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Resolve MSVC warning

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Monday, February 10, 2025 14:43:09
    https://gitlab.synchro.net/main/sbbs/-/commit/f55039de28c9dfc30450fec8
    Modified Files:
    src/uifc/uifc32.c
    Log Message:
    Only base drag-select highlight on the legacy attribute.

    The fg/bg values all have multiple representations, and some bits
    have extra meanings, so inequality there doesn't mean they're not
    the same colour.

    This fixes an issue where the *second* drag select on a screen
    would not highlight blue backgrounds correctly. The background
    colour gets the "pixels set" bit flown because of how
    restorescreen() works, which caused this to "know" it's not blue
    and use a blue background.

    A (good) argument could be made that savescreen()/restorescreen()
    shouldn't result in any changes, but since uifc32 doesn't directly
    use colours that aren't represented by legacy attributes, there's
    no need for it to get tricky here.

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