diff options
| author | Greg Ercolano <erco@seriss.com> | 2010-11-15 04:38:21 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2010-11-15 04:38:21 +0000 |
| commit | 1c06cb428359629b485a1dedf77474db9fb3fa69 (patch) | |
| tree | 85243631d61accc0df4d2efdbac93fe54eaae939 /src | |
| parent | 61a9b328729f44080b6c01fb55961e3c1b698ec1 (diff) | |
Solves STR #2428: Silence float->int conversion warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Quartz_Printer.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Quartz_Printer.mm b/src/Fl_Quartz_Printer.mm index 80e5b5518..479cd846d 100644 --- a/src/Fl_Quartz_Printer.mm +++ b/src/Fl_Quartz_Printer.mm @@ -164,8 +164,8 @@ int Fl_Printer::printable_rect(int *w, int *h) x = (int)pmRect.left; y = (int)pmRect.top; - *w = (int)(pmRect.right - x) / scale_x + 1; - *h = (int)(pmRect.bottom - y) / scale_y + 1; + *w = int((int)(pmRect.right - x) / scale_x + 1); + *h = int((int)(pmRect.bottom - y) / scale_y + 1); return 0; } |
