summaryrefslogtreecommitdiff
path: root/src/Fl_Copy_Surface.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-29 20:50:04 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-29 20:50:04 +0000
commit40e9ae6e6107a79eed12ed2e8efedb6e4e8597f1 (patch)
treed7cd500f14bf4e256d3089d3b4ffd6a6831de45a /src/Fl_Copy_Surface.cxx
parent8717f1b25285e132f40c0bfa580c45c29f840082 (diff)
Fixed a few warnings from a picky compiler setting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Copy_Surface.cxx')
-rw-r--r--src/Fl_Copy_Surface.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Copy_Surface.cxx b/src/Fl_Copy_Surface.cxx
index 53fcc1460..716aacfdc 100644
--- a/src/Fl_Copy_Surface.cxx
+++ b/src/Fl_Copy_Surface.cxx
@@ -88,10 +88,10 @@ Fl_Copy_Surface::Fl_Copy_Surface(int w, int h) : Fl_Surface_Device(NULL)
int vmm = GetDeviceCaps(hdc, VERTSIZE);
int vdots = GetDeviceCaps(hdc, VERTRES);
ReleaseDC(NULL, hdc);
- float factorw = (100. * hmm) / hdots;
- float factorh = (100. * vmm) / vdots;
+ float factorw = (100.f * hmm) / hdots;
+ float factorh = (100.f * vmm) / vdots;
- RECT rect; rect.left = 0; rect.top = 0; rect.right = w * factorw; rect.bottom = h * factorh;
+ RECT rect; rect.left = 0; rect.top = 0; rect.right = (LONG)(w * factorw); rect.bottom = (LONG)(h * factorh);
gc = CreateEnhMetaFile (NULL, NULL, &rect, NULL);
if (gc != NULL) {
SetTextAlign(gc, TA_BASELINE|TA_LEFT);