diff options
author | Max Horn | 2009-01-30 16:18:58 +0000 |
---|---|---|
committer | Max Horn | 2009-01-30 16:18:58 +0000 |
commit | e354c4b4f28ec5e67817fe3161ce163bd60e4748 (patch) | |
tree | 866b4f8fa64b43dfc0ad7eec57dcbaacb01b5625 /graphics/VectorRendererSpec.h | |
parent | f49e0667a4a2bfb55022705f58b4c2608d86b2b5 (diff) | |
download | scummvm-rg350-e354c4b4f28ec5e67817fe3161ce163bd60e4748.tar.gz scummvm-rg350-e354c4b4f28ec5e67817fe3161ce163bd60e4748.tar.bz2 scummvm-rg350-e354c4b4f28ec5e67817fe3161ce163bd60e4748.zip |
Got rid of VectorRenderer::surfacePitch() & VectorRenderer::bytesPerPixel(): the latter was not used, for the former it is silly to go through a virtual method to compute that value; all in all, this code performs too many unnecessary divisions ;)
svn-id: r36151
Diffstat (limited to 'graphics/VectorRendererSpec.h')
-rw-r--r-- | graphics/VectorRendererSpec.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/graphics/VectorRendererSpec.h b/graphics/VectorRendererSpec.h index 90adb77759..045882c955 100644 --- a/graphics/VectorRendererSpec.h +++ b/graphics/VectorRendererSpec.h @@ -207,24 +207,6 @@ protected: while (first != last) blendPixelPtr(first++, color, alpha); } - /** - * Fills several pixels in a row with a given color. - * - * This is a replacement function for Common::set_to, using an unrolled - * loop to maximize performance on most architectures. - * This function may (and should) be overloaded in any child renderers - * for portable platforms with platform-specific assembly code. - * - * This fill operation is extensively used throughout the renderer, so this - * counts as one of the main bottlenecks. Please replace it with assembly - * when possible! - * - * @param first Pointer to the first pixel to fill. - * @param last Pointer to the last pixel to fill. - * @param color Color of the pixel - */ - inline void colorFill(PixelType *first, PixelType *last, PixelType color); - PixelType _fgColor; /**< Foreground color currently being used to draw on the renderer */ PixelType _bgColor; /**< Background color currently being used to draw on the renderer */ |