From 892094fa91f064e24d9017d84228f6c781add428 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 7 Mar 2021 10:24:58 +0200 Subject: Processing per-pixel scroll events Do platform-specific processing of scroll events up front so widgets can support both types of scrolls everywhere. IssueID #166 --- src/ui/text.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/ui/text.c') diff --git a/src/ui/text.c b/src/ui/text.c index f380b67b..d9ddf2b2 100644 --- a/src/ui/text.c +++ b/src/ui/text.c @@ -708,12 +708,13 @@ void rasterizeSomePendingGlyphs_Text(void) { } enum iRunMode { - measure_RunMode = 0, - draw_RunMode = 1, - modeMask_RunMode = 0x00ff, - flagsMask_RunMode = 0xff00, - noWrapFlag_RunMode = iBit(9), - visualFlag_RunMode = iBit(10), /* actual visible bounding box of the glyph, e.g., for icons */ + measure_RunMode = 0, + draw_RunMode = 1, + modeMask_RunMode = 0x00ff, + flagsMask_RunMode = 0xff00, + noWrapFlag_RunMode = iBit(9), + visualFlag_RunMode = iBit(10), /* actual visible bounding box of the glyph, + e.g., for icons */ permanentColorFlag_RunMode = iBit(11), alwaysVariableWidthFlag_RunMode = iBit(12), }; -- cgit v1.2.3