diff --git a/src/servers/app/drawing/Painter/Painter.cpp b/src/servers/app/drawing/Painter/Painter.cpp index c0c281101b..755237eb29 100644 --- a/src/servers/app/drawing/Painter/Painter.cpp +++ b/src/servers/app/drawing/Painter/Painter.cpp @@ -39,6 +39,11 @@ #include "Painter.h" +// TODO: I have no idea why this is, but the libbe_test target needs this +#ifdef HAIKU_TARGET_PLATFORM_LIBBE_TEST +extern "C" float roundf(float x); +#endif + #if ALIASED_DRAWING // in this case, we _cannot_ use the outline rasterizer. # define USE_OUTLINE_RASTERIZER 0 @@ -53,17 +58,10 @@ # define USE_OUTLINE_RASTERIZER 0 #endif -int -roundf(float v) -{ - if (v >= 0.0) - return (int)floorf(v + 0.5); - else - return (int)floorf(v - 0.5); -} #define CHECK_CLIPPING if (!fValidClipping) return BRect(0, 0, -1, -1); + // constructor Painter::Painter() : fBuffer(NULL),