fix backslash escaping rules in cfg serialization; fix small scrolling (e.g. from trackpad) often being truncated to having no effect; fixed hanging when set-thread-name specifies a non-readable address

This commit is contained in:
Ryan Fleury
2024-04-09 07:37:53 -07:00
parent 36b50981ff
commit d560f8c734
3 changed files with 15 additions and 4 deletions
+7 -2
View File
@@ -2525,8 +2525,13 @@ ui_signal_from_box(UI_Box *box)
{
Swap(F32, delta.x, delta.y);
}
sig.scroll.x += (S16)(delta.x/30.f);
sig.scroll.y += (S16)(delta.y/30.f);
Vec2S16 delta16 = v2s16((S16)(delta.x/30.f), (S16)(delta.y/30.f));
if(delta.x > 0 && delta16.x == 0) { delta16.x = +1; }
if(delta.x < 0 && delta16.x == 0) { delta16.x = -1; }
if(delta.y > 0 && delta16.y == 0) { delta16.y = +1; }
if(delta.y < 0 && delta16.y == 0) { delta16.y = -1; }
sig.scroll.x += delta16.x;
sig.scroll.y += delta16.y;
taken = 1;
}