From 2b7744c9372ab74b4911e664a18d11301cdd2c1f Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 18 Aug 2006 03:32:00 +0000 Subject: [PATCH] Tab cleanup. --- stepmania/src/BitmapText.cpp | 2 +- stepmania/src/BitmapText.h | 2 +- stepmania/src/Sprite.cpp | 48 ++++++++++++++++++------------------ 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index 2c9db53dc7..91aa706cc8 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -854,7 +854,7 @@ class LunaBitmapText: public Luna public: LunaBitmapText() { LUA->Register( Register ); } - static int wrapwidthpixels( T* p, lua_State *L ) { p->SetWrapWidthPixels( IArg(1) ); return 0; } + static int wrapwidthpixels( T* p, lua_State *L ) { p->SetWrapWidthPixels( IArg(1) ); return 0; } static int maxwidth( T* p, lua_State *L ) { p->SetMaxWidth( FArg(1) ); return 0; } static int maxheight( T* p, lua_State *L ) { p->SetMaxHeight( FArg(1) ); return 0; } static int vertspacing( T* p, lua_State *L ) { p->SetVertSpacing( IArg(1) ); return 0; } diff --git a/stepmania/src/BitmapText.h b/stepmania/src/BitmapText.h index 5fffceb56d..e6cc9a49ca 100644 --- a/stepmania/src/BitmapText.h +++ b/stepmania/src/BitmapText.h @@ -83,7 +83,7 @@ protected: struct ColorChange { RageColor c; //Color to change to - int l; //Change Location + int l; //Change Location }; vector m_vColors; }; diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index c282d9be44..a1c3acbd1e 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -554,10 +554,10 @@ void Sprite::DrawPrimitives() ts.crop.top += FadeDist.top; // lop off the corner if fading both x and y ts.crop.bottom += FadeDist.bottom; - ts.diffuse[0] = m_pTempState->diffuse[0]; // top left -> top left - ts.diffuse[2] = m_pTempState->diffuse[2]; // bottom left -> bottom left - ts.diffuse[3] = m_pTempState->diffuse[2]; // bottom left -> bottom right - ts.diffuse[1] = m_pTempState->diffuse[0]; // top left -> top right + ts.diffuse[0] = m_pTempState->diffuse[0]; // top left -> top left + ts.diffuse[2] = m_pTempState->diffuse[2]; // bottom left -> bottom left + ts.diffuse[3] = m_pTempState->diffuse[2]; // bottom left -> bottom right + ts.diffuse[1] = m_pTempState->diffuse[0]; // top left -> top right ts.diffuse[0].a = 0; // top left ts.diffuse[2].a = 0; // bottom left ts.diffuse[3].a *= LeftAlpha; // bottom right @@ -573,14 +573,14 @@ void Sprite::DrawPrimitives() ts.crop.top += FadeDist.top; ts.crop.bottom += FadeDist.bottom; - ts.diffuse[0] = m_pTempState->diffuse[1]; // top right -> top left - ts.diffuse[2] = m_pTempState->diffuse[3]; // bottom right -> bottom left - ts.diffuse[3] = m_pTempState->diffuse[3]; // bottom right -> bottom right - ts.diffuse[1] = m_pTempState->diffuse[1]; // top right -> top right - ts.diffuse[0].a *= RightAlpha; // top left - ts.diffuse[2].a *= RightAlpha; // bottom left - ts.diffuse[3].a = 0; // bottom right - ts.diffuse[1].a = 0; // top right + ts.diffuse[0] = m_pTempState->diffuse[1]; // top right -> top left + ts.diffuse[2] = m_pTempState->diffuse[3]; // bottom right -> bottom left + ts.diffuse[3] = m_pTempState->diffuse[3]; // bottom right -> bottom right + ts.diffuse[1] = m_pTempState->diffuse[1]; // top right -> top right + ts.diffuse[0].a *= RightAlpha; // top left + ts.diffuse[2].a *= RightAlpha; // bottom left + ts.diffuse[3].a = 0; // bottom right + ts.diffuse[1].a = 0; // top right DrawTexture( &ts ); } @@ -593,10 +593,10 @@ void Sprite::DrawPrimitives() ts.crop.left += FadeDist.left; ts.crop.right += FadeDist.right; - ts.diffuse[0] = m_pTempState->diffuse[0]; // top left -> top left - ts.diffuse[2] = m_pTempState->diffuse[0]; // top left -> bottom left - ts.diffuse[3] = m_pTempState->diffuse[1]; // top right -> bottom right - ts.diffuse[1] = m_pTempState->diffuse[1]; // top right -> top right + ts.diffuse[0] = m_pTempState->diffuse[0]; // top left -> top left + ts.diffuse[2] = m_pTempState->diffuse[0]; // top left -> bottom left + ts.diffuse[3] = m_pTempState->diffuse[1]; // top right -> bottom right + ts.diffuse[1] = m_pTempState->diffuse[1]; // top right -> top right ts.diffuse[0].a = 0; // top left ts.diffuse[2].a *= TopAlpha; // bottom left ts.diffuse[3].a *= TopAlpha; // bottom right @@ -613,14 +613,14 @@ void Sprite::DrawPrimitives() ts.crop.left += FadeDist.left; ts.crop.right += FadeDist.right; - ts.diffuse[0] = m_pTempState->diffuse[2]; // bottom left -> top left - ts.diffuse[2] = m_pTempState->diffuse[2]; // bottom left -> bottom left - ts.diffuse[3] = m_pTempState->diffuse[3]; // bottom right -> bottom right - ts.diffuse[1] = m_pTempState->diffuse[3]; // bottom right -> top right - ts.diffuse[0].a *= BottomAlpha; // top left - ts.diffuse[2].a = 0; // bottom left - ts.diffuse[3].a = 0; // bottom right - ts.diffuse[1].a *= BottomAlpha; // top right + ts.diffuse[0] = m_pTempState->diffuse[2]; // bottom left -> top left + ts.diffuse[2] = m_pTempState->diffuse[2]; // bottom left -> bottom left + ts.diffuse[3] = m_pTempState->diffuse[3]; // bottom right -> bottom right + ts.diffuse[1] = m_pTempState->diffuse[3]; // bottom right -> top right + ts.diffuse[0].a *= BottomAlpha; // top left + ts.diffuse[2].a = 0; // bottom left + ts.diffuse[3].a = 0; // bottom right + ts.diffuse[1].a *= BottomAlpha; // top right DrawTexture( &ts ); } }