From 16af209f76074553c6f56b3cd0da3610a71410ab Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Tue, 22 Sep 2009 15:34:03 +0200 Subject: Fixed ellipsedrawing in raser engine for rects over 2^15 in size Reviewed-by: Samuel --- src/gui/painting/qpaintengine_raster.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp index effc99e..6037bd5 100644 --- a/src/gui/painting/qpaintengine_raster.cpp +++ b/src/gui/painting/qpaintengine_raster.cpp @@ -3663,6 +3663,7 @@ void QRasterPaintEngine::drawEllipse(const QRectF &rect) ensurePen(); if (((qpen_style(s->lastPen) == Qt::SolidLine && s->flags.fast_pen) || (qpen_style(s->lastPen) == Qt::NoPen && !s->flags.antialiased)) + && qMax(rect.width(), rect.height()) < QT_RASTER_COORD_LIMIT #ifdef FLOATING_POINT_BUGGY_OR_NO_FPU && qMax(rect.width(), rect.height()) < 128 // integer math breakdown #endif -- cgit v0.12