Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I'd like some JUNK FOOD ... and then I want to be ALONE --


dovenet / Synchronet Programming / src/conio/sdl_con.c win32gdi.c x_events.c

SubjectAuthor
o src/conio/sdl_con.c win32gdi.c x_events.cDeuc?

1
src/conio/sdl_con.c win32gdi.c x_events.c

<65E77702.49186.syncprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=3205&group=DOVE-Net.Synchronet_Programming#3205

  copy link   Newsgroups: DOVE-Net.Synchronet_Programming
From: deuc?@VERT (Deuc?)
To: Git commit to main/sbbs/master
Subject: src/conio/sdl_con.c win32gdi.c x_events.c
Message-ID: <65E77702.49186.syncprog@vert.synchro.net>
Date: Tue, 5 Mar 2024 11:48:18 -0800
X-Comment-To: Git commit to main/sbbs/master
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Programming
X-FTN-PID: Synchronet 3.20a-Linux master/c3e46719e Mar 2 2024 GCC 12.2.0
X-FTN-MSGID: 49186.syncprog@1:103/705 2a4d6d24
X-FTN-CHRS: CP437 2
WhenImported: 20240305114818-0800 41e0
WhenExported: 20240305164635-0800 41e0
ExportedFrom: VERT syncprog 49186
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Deuc? - Tue, 5 Mar 2024 19:48 UTC

https://gitlab.synchro.net/main/sbbs/-/commit/cedc67bbbd625451e8e47e08
Modified Files:
src/conio/sdl_con.c win32gdi.c x_events.c
Log Message:
Fix for SourceForge issue 134

Translation from mouse coordinates to screen coordinates had issues
with internal vs. external scaling and for when there are gutters
(ie: black bars) on the edges.

This change snaps all gutter clicks to the nearest position inside
the window instead of discarding them, and ensures the calculations
are correct regardless of scaling mode.

Win32GDI mode was not tested, the only change there was to stop
ignoring mouse positions in the gutters.

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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor