aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-26 18:31:54 +0100
committerEugene Sandulenko2016-12-26 18:31:54 +0100
commit6a11ac7f12fa96bb4e67596ee5cb166895846834 (patch)
tree2ccc211e46736b6bcc7ff8d36560585b13a34227 /graphics
parent79bd6e5b49354f64ca9636f1afdd60b31c1de986 (diff)
downloadscummvm-rg350-6a11ac7f12fa96bb4e67596ee5cb166895846834.tar.gz
scummvm-rg350-6a11ac7f12fa96bb4e67596ee5cb166895846834.tar.bz2
scummvm-rg350-6a11ac7f12fa96bb4e67596ee5cb166895846834.zip
GRAPHICS: Avoid name clashes for templates/non-template function
Diffstat (limited to 'graphics')
-rw-r--r--graphics/transparent_surface.cpp16
-rw-r--r--graphics/transparent_surface.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/graphics/transparent_surface.cpp b/graphics/transparent_surface.cpp
index a0e175efdf..6eee635ad2 100644
--- a/graphics/transparent_surface.cpp
+++ b/graphics/transparent_surface.cpp
@@ -677,7 +677,7 @@ systems.
struct tColorRGBA { byte r; byte g; byte b; byte a; };
template <TFilteringMode filteringMode>
-TransparentSurface *TransparentSurface::rotoscale(const TransformStruct &transform) const {
+TransparentSurface *TransparentSurface::rotoscale_(const TransformStruct &transform) const {
assert(transform._angle != 0); // This would not be ideal; rotoscale() should never be called in conditional branches where angle = 0 anyway.
@@ -791,7 +791,7 @@ TransparentSurface *TransparentSurface::rotoscale(const TransformStruct &transfo
}
template <TFilteringMode filteringMode>
-TransparentSurface *TransparentSurface::scale(uint16 newWidth, uint16 newHeight) const {
+TransparentSurface *TransparentSurface::scale_(uint16 newWidth, uint16 newHeight) const {
Common::Rect srcRect(0, 0, (int16)w, (int16)h);
Common::Rect dstRect(0, 0, (int16)newWidth, (int16)newHeight);
@@ -1054,17 +1054,17 @@ TransparentSurface *TransparentSurface::convertTo(const PixelFormat &dstFormat,
}
-template TransparentSurface *TransparentSurface::rotoscale<FILTER_NEAREST>(const TransformStruct &transform) const;
-template TransparentSurface *TransparentSurface::rotoscale<FILTER_BILINEAR>(const TransformStruct &transform) const;
-template TransparentSurface *TransparentSurface::scale<FILTER_NEAREST>(uint16 newWidth, uint16 newHeight) const;
-template TransparentSurface *TransparentSurface::scale<FILTER_BILINEAR>(uint16 newWidth, uint16 newHeight) const;
+template TransparentSurface *TransparentSurface::rotoscale_<FILTER_NEAREST>(const TransformStruct &transform) const;
+template TransparentSurface *TransparentSurface::rotoscale_<FILTER_BILINEAR>(const TransformStruct &transform) const;
+template TransparentSurface *TransparentSurface::scale_<FILTER_NEAREST>(uint16 newWidth, uint16 newHeight) const;
+template TransparentSurface *TransparentSurface::scale_<FILTER_BILINEAR>(uint16 newWidth, uint16 newHeight) const;
TransparentSurface *TransparentSurface::rotoscale(const TransformStruct &transform) const {
- return rotoscale<FILTER_BILINEAR>(transform);
+ return rotoscale_<FILTER_BILINEAR>(transform);
}
TransparentSurface *TransparentSurface::scale(uint16 newWidth, uint16 newHeight) const {
- return scale<FILTER_NEAREST>(newWidth, newHeight);
+ return scale_<FILTER_NEAREST>(newWidth, newHeight);
}
} // End of namespace Graphics
diff --git a/graphics/transparent_surface.h b/graphics/transparent_surface.h
index 83c65766fb..0c9a8fa67e 100644
--- a/graphics/transparent_surface.h
+++ b/graphics/transparent_surface.h
@@ -147,7 +147,7 @@ struct TransparentSurface : public Graphics::Surface {
* @see TransformStruct
*/
template <TFilteringMode filteringMode>
- TransparentSurface *scale(uint16 newWidth, uint16 newHeight) const;
+ TransparentSurface *scale_(uint16 newWidth, uint16 newHeight) const;
TransparentSurface *scale(uint16 newWidth, uint16 newHeight) const;
/**
@@ -158,7 +158,7 @@ struct TransparentSurface : public Graphics::Surface {
*
*/
template <TFilteringMode filteringMode>
- TransparentSurface *rotoscale(const TransformStruct &transform) const;
+ TransparentSurface *rotoscale_(const TransformStruct &transform) const;
TransparentSurface *rotoscale(const TransformStruct &transform) const;