projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3beea9
)
Fix OS X warning.
author
Carl Hetherington
<cth@carlh.net>
Fri, 12 Oct 2018 23:04:39 +0000
(
00:04
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 12 Oct 2018 23:04:39 +0000
(
00:04
+0100)
src/wx/timeline.cc
patch
|
blob
|
history
diff --git
a/src/wx/timeline.cc
b/src/wx/timeline.cc
index 0231bc400de29838f06d28f9108c014a81d58158..a607b1eb170fac26507bf8822a7a421a5fc8dafb 100644
(file)
--- a/
src/wx/timeline.cc
+++ b/
src/wx/timeline.cc
@@
-48,6
+48,7
@@
using std::list;
using std::cout;
using std::min;
using std::max;
+using std::abs;
using boost::shared_ptr;
using boost::weak_ptr;
using boost::dynamic_pointer_cast;
@@
-188,8
+189,8
@@
Timeline::paint_main ()
gc->DrawRectangle (
min (_down_point.x, _zoom_point->x),
min (_down_point.y, _zoom_point->y),
-
f
abs (_down_point.x - _zoom_point->x),
-
f
abs (_down_point.y - _zoom_point->y)
+ abs (_down_point.x - _zoom_point->x),
+ abs (_down_point.y - _zoom_point->y)
);
}