aboutsummaryrefslogtreecommitdiff
path: root/graphics/transparent_surface.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-26 18:00:17 +0100
committerEugene Sandulenko2016-12-26 18:00:17 +0100
commitdff109caba34fc5bf29d75e4ce85eecf7833f9f7 (patch)
tree8839521cd0f3c783fa34f04de67d7f904ef0f2a4 /graphics/transparent_surface.cpp
parent8477c4beb2de1ad70f355386d745d4f9c1f5d98b (diff)
downloadscummvm-rg350-dff109caba34fc5bf29d75e4ce85eecf7833f9f7.tar.gz
scummvm-rg350-dff109caba34fc5bf29d75e4ce85eecf7833f9f7.tar.bz2
scummvm-rg350-dff109caba34fc5bf29d75e4ce85eecf7833f9f7.zip
GRAPHICS: Increase portability. Hopefully it will fix PS2 backend
Diffstat (limited to 'graphics/transparent_surface.cpp')
-rw-r--r--graphics/transparent_surface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/transparent_surface.cpp b/graphics/transparent_surface.cpp
index 2a5decf4e2..bd18e5d052 100644
--- a/graphics/transparent_surface.cpp
+++ b/graphics/transparent_surface.cpp
@@ -674,6 +674,7 @@ systems.
+struct tColorRGBA { byte r; byte g; byte b; byte a; };
template <TFilteringMode filteringMode>
TransparentSurface *TransparentSurface::rotoscale(const TransformStruct &transform) const {
@@ -703,7 +704,6 @@ TransparentSurface *TransparentSurface::rotoscale(const TransformStruct &transfo
float invCos = cos(invAngle * M_PI / 180.0);
float invSin = sin(invAngle * M_PI / 180.0);
- struct tColorRGBA { byte r; byte g; byte b; byte a; };
int icosx = (int)(invCos * (65536.0f * kDefaultZoomX / transform._zoom.x));
int isinx = (int)(invSin * (65536.0f * kDefaultZoomX / transform._zoom.x));
int icosy = (int)(invCos * (65536.0f * kDefaultZoomY / transform._zoom.y));