[Scummvm-git-logs] scummvm master -> dff109caba34fc5bf29d75e4ce85eecf7833f9f7

sev- sev at scummvm.org
Mon Dec 26 18:00:52 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
dff109caba GRAPHICS: Increase portability. Hopefully it will fix PS2 backend


Commit: dff109caba34fc5bf29d75e4ce85eecf7833f9f7
    https://github.com/scummvm/scummvm/commit/dff109caba34fc5bf29d75e4ce85eecf7833f9f7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-12-26T18:00:17+01:00

Commit Message:
GRAPHICS: Increase portability. Hopefully it will fix PS2 backend

Changed paths:
    graphics/transparent_surface.cpp


diff --git a/graphics/transparent_surface.cpp b/graphics/transparent_surface.cpp
index 2a5decf..bd18e5d 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));





More information about the Scummvm-git-logs mailing list