aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/VectorRendererSpec.cpp22
-rw-r--r--graphics/VectorRendererSpec.h11
2 files changed, 2 insertions, 31 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 908b9eb1a3..4819ea8336 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -262,7 +262,7 @@ blitSurface(const Graphics::Surface *source, const Common::Rect &r) {
int h = r.height(), w = r.width();
while (h--) {
- colorCopy(src_ptr, dst_ptr, w);
+ memcpy(dst_ptr, src_ptr, w * sizeof(PixelType));
dst_ptr += dst_pitch;
src_ptr += src_pitch;
}
@@ -280,7 +280,7 @@ blitSubSurface(const Graphics::Surface *source, const Common::Rect &r) {
int h = r.height(), w = r.width();
while (h--) {
- colorCopy(src_ptr, dst_ptr, w);
+ memcpy(dst_ptr, src_ptr, w * sizeof(PixelType));
dst_ptr += dst_pitch;
src_ptr += src_pitch;
}
@@ -411,24 +411,6 @@ colorFill(PixelType *first, PixelType *last, PixelType color) {
}
}
-template <typename PixelType, typename PixelFormat>
-inline void VectorRendererSpec<PixelType, PixelFormat>::
-colorCopy(PixelType *src, PixelType *dst, int count) {
- register int n = (count + 7) >> 3;
- switch (count % 8) {
- case 0: do {
- *dst++ = *src++;
- case 7: *dst++ = *src++;
- case 6: *dst++ = *src++;
- case 5: *dst++ = *src++;
- case 4: *dst++ = *src++;
- case 3: *dst++ = *src++;
- case 2: *dst++ = *src++;
- case 1: *dst++ = *src++;
- } while (--n > 0);
- }
-}
-
/********************************************************************
********************************************************************
* Primitive shapes drawing - Public API calls - VectorRendererSpec *
diff --git a/graphics/VectorRendererSpec.h b/graphics/VectorRendererSpec.h
index 4d30e5a75a..04f28d4020 100644
--- a/graphics/VectorRendererSpec.h
+++ b/graphics/VectorRendererSpec.h
@@ -227,17 +227,6 @@ protected:
* @param color Color of the pixel
*/
virtual inline void colorFill(PixelType *first, PixelType *last, PixelType color);
-
- /**
- * Copies several pixes in a row from a surface to another one.
- * Used for surface blitting.
- * See colorFill() for optimization guidelines.
- *
- * @param src Source surface.
- * @param dst Destination surface.
- * @param count Amount of pixels to copy over.
- */
- virtual inline void colorCopy(PixelType *src, PixelType *dst, int count);
virtual void areaConvolution(const Common::Rect &area, const int filter[3][3], int filterDiv, int offset);