mirror of
https://github.com/ruppert/fmini-1.git
synced 2026-12-06 12:54:23 +01:00
FMini: the knob cursor's orange frame 3 px wider on each side
The frame under the highlighted knob (fa_knob_col) was 50 px wide round a 44 px bar; now 56 px, 3 px more on each side. Horizontal only. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
This commit is contained in:
1 file changed
+1
-1
@@ -408,7 +408,7 @@ static void fa_fader(uint32_t pg, uint32_t i, int32_t cx, int hot)
|
||||
fmg_card_at(pg, i, -1, &lb, val, &un, &ratio, &ic);
|
||||
fw = (ratio < 0 ? 0 : ratio) * 42 / 1000;
|
||||
if (hot)
|
||||
cv_frame(x - 3, y - 4, 50, 15, FA_OR);
|
||||
cv_frame(x - 6, y - 4, 56, 15, FA_OR); /* 3 px wider on each side (the bar is 44 wide) */
|
||||
cv_rect(x, y, 44, 7, FA_LINE);
|
||||
cv_rect(x + 1, y + 1, 42, 5, FA_BOX);
|
||||
cv_rect(x + 1, y + 1, fw, 5, FA_OR);
|
||||
|
||||
Reference in new issue
Block a user