summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fl_cursor.cxx4
-rw-r--r--src/fl_font_mac.cxx10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/fl_cursor.cxx b/src/fl_cursor.cxx
index 609f91eef..7dcad6eb3 100644
--- a/src/fl_cursor.cxx
+++ b/src/fl_cursor.cxx
@@ -182,8 +182,8 @@ CGContextRef CreateWatchImage(void)
fl_pie(-r, -r, 2*r, 2*r, 0, 360);
fl_color(FL_BLACK);
fl_circle(0,0,r);
- fl_xyline(0, 0, -r*.7);
- fl_xyline(0, 0, 0, -r*.7);
+ fl_xyline(0, 0, int(-r*.7));
+ fl_xyline(0, 0, 0, int(-r*.7));
fl_end_offscreen();
return (CGContextRef)off;
}
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx
index 53ae93d74..b02de3351 100644
--- a/src/fl_font_mac.cxx
+++ b/src/fl_font_mac.cxx
@@ -129,8 +129,8 @@ else {
float fa = -FixedToFloat(bAscent), fd = -FixedToFloat(bDescent);
if (fa>0.0f && fd>0.0f) {
//float f = Size/(fa+fd);
- ascent = fa; //int(fa*f+0.5f);
- descent = fd; //Size - ascent;
+ ascent = int(fa); //int(fa*f+0.5f);
+ descent = int(fd); //Size - ascent;
}
int w = FixedToInt(bAfter);
if (w)
@@ -335,8 +335,8 @@ void fl_text_extents(const UniChar* txt, int n, int &dx, int &dy, int &w, int &h
if (!fl_fontsize) {
check_default_font(); // avoid a crash!
if (!fl_fontsize)
- w = 8.0 * n; // user must select a font first!
- h = 8.0;
+ w = int(8.0 * n); // user must select a font first!
+ h = int(8.0);
return;
}
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
@@ -493,7 +493,7 @@ void Fl_Graphics_Driver::draw(int angle, const char *str, int n, int x, int y) {
}
void Fl_Graphics_Driver::rtl_draw(const char* c, int n, int x, int y) {
- draw(c, n, x - fl_width(c, n), y);
+ draw(c, n, int(x - fl_width(c, n)), y);
}
//