diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VectorRendererSpec.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index f4e9d6b098..46c0ec6a67 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -426,6 +426,8 @@ template <typename PixelType, typename PixelFormat> void VectorRendererSpec<PixelType, PixelFormat>:: colorFill(PixelType *first, PixelType *last, PixelType color) { register int count = (last - first); + if (!count) + return; register int n = (count + 7) >> 3; switch (count % 8) { case 0: do { |