diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 5728f236b9..f929e78dc2 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -18,6 +18,7 @@ #include "wx/cursor.h" #endif +#include "wx/math.h" #include "wx/rawbmp.h" #include "wx/gtk/private/object.h" @@ -991,7 +992,7 @@ void wxBitmap::SetMask( wxMask *mask ) #ifdef __WXGTK3__ bool wxBitmap::CreateScaled(int w, int h, int depth, double scale) { - Create(int(w * scale), int(h * scale), depth); + Create(wxRound(w * scale), wxRound(h * scale), depth); M_BMPDATA->m_scaleFactor = scale; return true; }