aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-12 14:20:52 +0000
committerEugene Sandulenko2010-09-12 14:20:52 +0000
commit09ae34f4a4631b72a0b91ef28ec7658c0c00aed5 (patch)
tree16ad1d867531669c83ced696b083c3c292ed9b21 /engines
parentf7f5a561eb389d1e31c50fd36b50178f9393c1ef (diff)
downloadscummvm-rg350-09ae34f4a4631b72a0b91ef28ec7658c0c00aed5.tar.gz
scummvm-rg350-09ae34f4a4631b72a0b91ef28ec7658c0c00aed5.tar.bz2
scummvm-rg350-09ae34f4a4631b72a0b91ef28ec7658c0c00aed5.zip
TESTBED: Fix warnings
svn-id: r52685
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/graphics.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index 38f5daf35d..a732a74ae2 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -403,7 +403,7 @@ bool GFXtests::fullScreenMode() {
"upon your initial state.";
Common::Point pt(0, 100);
- Common::Rect rect = Testsuite::writeOnScreen("Testing fullscreen mode", pt);
+ Testsuite::writeOnScreen("Testing fullscreen mode", pt);
if (Testsuite::handleInteractiveInput(info, "OK", "Skip", kOptionRight)) {
Testsuite::logPrintf("Info! Skipping test : FullScreenMode\n");
@@ -496,7 +496,7 @@ bool GFXtests::aspectRatio() {
bool isFeaturePresent;
bool isFeatureEnabled;
- bool passed;
+ bool passed = true;
Common::String prompt;
OptionSelected shouldSelect;
@@ -693,7 +693,7 @@ bool GFXtests::iconifyWindow() {
}
Common::Point pt(0, 100);
- Common::Rect rect = Testsuite::writeOnScreen("Testing Iconifying window", pt);
+ Testsuite::writeOnScreen("Testing Iconifying window", pt);
bool isFeaturePresent;
bool isFeatureEnabled;
@@ -915,7 +915,6 @@ bool GFXtests::paletteRotation() {
Testsuite::logPrintf("Info! Skipping test : palette Rotation\n");
return true;
}
- Common::Point pt(0, 10);
Testsuite::clearEntireScreen();
// Use 256 colors
@@ -1022,7 +1021,7 @@ bool GFXtests::pixelFormats() {
int numFormatsTested = 0;
int numPassed = 0;
- bool numFailed = 0;
+ int numFailed = 0;
Testsuite::logDetailedPrintf("Testing Pixel Formats. Size of list : %d\n", pfList.size());
@@ -1092,7 +1091,7 @@ bool GFXtests::pixelFormats() {
Testsuite::clearScreen();
if (numFailed) {
- Testsuite::logDetailedPrintf("Pixel Format test: Failed : %d, Passed : %d, Ignored %d\n",numFailed, numPassed, numFormatsTested - (numPassed + numFailed));
+ Testsuite::logDetailedPrintf("Pixel Format test: Failed : %d, Passed : %d, Ignored %d\n", numFailed, numPassed, numFormatsTested - (numPassed + numFailed));
return false;
}