From c5fa1cabd8070df6b669c36d995566f27358301c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 3 Nov 2011 01:05:03 +0000 Subject: SAGA: Fix warnings --- engines/saga/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/saga/gfx.cpp') diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp index ab0c0f3e4c..8e98f0fbe7 100644 --- a/engines/saga/gfx.cpp +++ b/engines/saga/gfx.cpp @@ -123,7 +123,7 @@ void Surface::drawPolyLine(const Point *points, int count, int color) { drawLine(points[i].x, points[i].y, points[i - 1].x, points[i - 1].y, color); } - drawLine(points[count - 1].x, points[count - 1].y, points->x, points->y, color); + drawLine(points[count - 1].x, points[count - 1].y, points[0].x, points[0].y, color); } } -- cgit v1.2.3 From a4798602d7a025dc13fd253d584dbf29dbec488d Mon Sep 17 00:00:00 2001 From: Tarek Soliman Date: Wed, 15 Feb 2012 09:53:31 -0600 Subject: JANITORIAL: Fix missing whitespace in pointer cast find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h) --- engines/saga/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/saga/gfx.cpp') diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp index 8e98f0fbe7..62250a0820 100644 --- a/engines/saga/gfx.cpp +++ b/engines/saga/gfx.cpp @@ -156,7 +156,7 @@ void Surface::transitionDissolve(const byte *sourceBuffer, const Common::Rect &s if (sourceRect.contains(x1, y1)) { color = sourceBuffer[(x1-sourceRect.left) + sourceRect.width()*(y1-sourceRect.top)]; if (flags == 0 || color) - ((byte*)pixels)[seq] = color; + ((byte *)pixels)[seq] = color; } } } -- cgit v1.2.3