summaryrefslogtreecommitdiff
path: root/src/Fl_Shared_Image.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Shared_Image.cxx')
-rw-r--r--src/Fl_Shared_Image.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Shared_Image.cxx b/src/Fl_Shared_Image.cxx
index 757c51b42..fa9a03c8e 100644
--- a/src/Fl_Shared_Image.cxx
+++ b/src/Fl_Shared_Image.cxx
@@ -390,8 +390,8 @@ void Fl_Shared_Image::scale(int width, int height, int proportional, int can_exp
if (fw < 1) fw = 1;
if (fh < 1) fh = 1;
}
- w(image_->w() / fw);
- h(image_->h() / fh);
+ w((int)(image_->w() / fw));
+ h((int)(image_->h() / fh));
}