aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-08 20:26:22 +0200
committerEinar Johan Trøan Sømåen2012-07-08 20:26:22 +0200
commite675d9fd20b4adfb04ee760d1efd106dccd7f17e (patch)
tree88c7a8fa5f813a1c9fe57f5c6f0f0c6010f4bc1e
parent6329178e85c3c83d5bc733dfda1622537fb1e43a (diff)
downloadscummvm-rg350-e675d9fd20b4adfb04ee760d1efd106dccd7f17e.tar.gz
scummvm-rg350-e675d9fd20b4adfb04ee760d1efd106dccd7f17e.tar.bz2
scummvm-rg350-e675d9fd20b4adfb04ee760d1efd106dccd7f17e.zip
WINTERMUTE: Rename VarName->varName in BRenderSDL
-rw-r--r--engines/wintermute/Base/BRenderSDL.cpp22
-rw-r--r--engines/wintermute/Base/BRenderSDL.h6
2 files changed, 14 insertions, 14 deletions
diff --git a/engines/wintermute/Base/BRenderSDL.cpp b/engines/wintermute/Base/BRenderSDL.cpp
index 1607161ab3..e156a76002 100644
--- a/engines/wintermute/Base/BRenderSDL.cpp
+++ b/engines/wintermute/Base/BRenderSDL.cpp
@@ -490,32 +490,32 @@ void CBRenderSDL::drawFromSurface(const Graphics::Surface *surf, Common::Rect *s
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBRenderSDL::drawLine(int X1, int Y1, int X2, int Y2, uint32 Color) {
+HRESULT CBRenderSDL::drawLine(int x1, int y1, int x2, int y2, uint32 color) {
static bool hasWarned = false;
if (!hasWarned) {
warning("CBRenderSDL::DrawLine - not fully ported yet");
hasWarned = true;
}
- byte r = D3DCOLGetR(Color);
- byte g = D3DCOLGetG(Color);
- byte b = D3DCOLGetB(Color);
- byte a = D3DCOLGetA(Color);
+ byte r = D3DCOLGetR(color);
+ byte g = D3DCOLGetG(color);
+ byte b = D3DCOLGetB(color);
+ byte a = D3DCOLGetA(color);
//SDL_SetRenderDrawColor(_renderer, r, g, b, a);
//SDL_SetRenderDrawBlendMode(_renderer, SDL_BLENDMODE_BLEND);
POINT point1, point2;
- point1.x = X1;
- point1.y = Y1;
+ point1.x = x1;
+ point1.y = y1;
pointToScreen(&point1);
- point2.x = X2;
- point2.y = Y2;
+ point2.x = x2;
+ point2.y = y2;
pointToScreen(&point2);
// TODO: This thing is mostly here until I'm sure about the final color-format.
- uint32 color = _renderSurface->format.ARGBToColor(a, r, g, b);
- _renderSurface->drawLine(point1.x, point1.y, point2.x, point2.y, color);
+ uint32 colorVal = _renderSurface->format.ARGBToColor(a, r, g, b);
+ _renderSurface->drawLine(point1.x, point1.y, point2.x, point2.y, colorVal);
//SDL_RenderDrawLine(_renderer, point1.x, point1.y, point2.x, point2.y);
return S_OK;
}
diff --git a/engines/wintermute/Base/BRenderSDL.h b/engines/wintermute/Base/BRenderSDL.h
index 0f3cf82a31..67999fe867 100644
--- a/engines/wintermute/Base/BRenderSDL.h
+++ b/engines/wintermute/Base/BRenderSDL.h
@@ -68,12 +68,12 @@ public:
HRESULT flip();
HRESULT fill(byte r, byte g, byte b, Common::Rect *rect = NULL);
- HRESULT fade(uint16 Alpha);
- HRESULT fadeToColor(uint32 Color, Common::Rect *rect = NULL);
+ HRESULT fade(uint16 alpha);
+ HRESULT fadeToColor(uint32 color, Common::Rect *rect = NULL);
HRESULT switchFullscreen();
- HRESULT drawLine(int X1, int Y1, int X2, int Y2, uint32 Color);
+ HRESULT drawLine(int x1, int y1, int x2, int y2, uint32 color);
CBImage *takeScreenshot();