diff options
Diffstat (limited to 'data/cwidget/max.diff')
-rw-r--r-- | data/cwidget/max.diff | 12 |
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) |