simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Nov 22 19:40:00 GMT 2024


TL;DR:
  5e74004 Untangle: allow frontends to alter some dimensions.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2024-11-22 19:40:00

commit 5e7400403c2f711352255f373b50850d4b2f4e63
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=5e7400403c2f711352255f373b50850d4b2f4e63;hp=8e83f39eb989d36f10fcf4be7c4dd5eaa0e69f02
Author: Kyle Swarner <kyds at parkourpizza.com>
Date:   Thu Nov 21 11:55:38 2024 -0500

    Untangle: allow frontends to alter some dimensions.
    
    This change to Untangle allows for custom frontends to optionally
    define their own CIRCLE_RADIUS and DRAG_THRESHOLD parameters.
    
    Rationale: The hardcoded values provided here (specifically a 6px
    circle radius) is far too small for many modern pixel-dense devices,
    requiring frontends to duplicate files locally to fix. Adding #ifndef
    conditionals around these two values allow them to be configured by
    the frontend without the need to fork the files.
    
    The changes here are what I made to support my custom iOS
    frontend (Puzzles Reloaded) and work well.

 untangle.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)



More information about the tartarus-commits mailing list