summaryrefslogtreecommitdiff
path: root/examples/animgifimage-resize.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/animgifimage-resize.cxx')
-rw-r--r--examples/animgifimage-resize.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/animgifimage-resize.cxx b/examples/animgifimage-resize.cxx
index 1417255b3..a357e186c 100644
--- a/examples/animgifimage-resize.cxx
+++ b/examples/animgifimage-resize.cxx
@@ -175,7 +175,7 @@ int main(int argc, char *argv[]) {
// set initial size to fit into window
double ratio = orig->valid() ? (double)orig->w() / orig->h() : 1;
int W = win.w() - 40;
- int H = (double)W / ratio;
+ int H = int(W / ratio);
printf("original size: %d x %d\n", orig->w(), orig->h());
win.size(W, H);
Fl::add_handler(events);