summaryrefslogtreecommitdiff
path: root/data/cwidget/max.diff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-10-12 16:38:39 -1000
committerSam Bingner <sam@bingner.com>2018-10-12 16:38:39 -1000
commitab753fcde40b28248172c552ce2b1f23eddfc9f4 (patch)
tree2ff2724ef77294878f91b528843a0f0b6dba5462 /data/cwidget/max.diff
parent295030d5719c3af352cfc5394b8ce13e3a1e0fb9 (diff)
Update more packages
Diffstat (limited to 'data/cwidget/max.diff')
-rw-r--r--data/cwidget/max.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/cwidget/max.diff b/data/cwidget/max.diff
new file mode 100644
index 000000000..fc4bcce95
--- /dev/null
+++ b/data/cwidget/max.diff
@@ -0,0 +1,12 @@
+diff -ur cwidget-0.5.17/src/cwidget/widgets/text_layout.cc cwidget-0.5.17+iPhone/src/cwidget/widgets/text_layout.cc
+--- cwidget-0.5.17/src/cwidget/widgets/text_layout.cc 2014-02-21 04:34:52.000000000 -1000
++++ cwidget-0.5.17+iPhone/src/cwidget/widgets/text_layout.cc 2018-08-30 17:05:02.000000000 -1000
+@@ -86,7 +86,7 @@
+ {
+ freshen_contents(lastst);
+ if(start > 0)
+- set_start(std::max(0, start - mouse_wheel_scroll_lines));
++ set_start(std::max((unsigned long)0, start - mouse_wheel_scroll_lines));
+ }
+ }
+ else if((bstate & BUTTON5_PRESSED) != 0)