[Scummvm-cvs-logs] scummvm master -> 63ca74905c4d6c4d98812b5b02bd98aa7894055b
fingolfin
max at quendi.de
Tue Jun 7 10:49:18 CEST 2011
This automated email contains information about 8 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
08c01d116b TESTBED: Add const modifiers to some parameters/functions
6362542836 TESTBED: Remove dead code, unused arguments and unreferenced symbols
04f4605f53 TESTBED: Rename error variable to err (was hiding error() symbol)
063814b15c TESTBED: Update some switch constructs for better control flow handling
fe9ee92b25 TESTBED: Cleanup boolean use in enable() function for fs and midi tests
3e1c4f8e16 TESTBED: Specialize call to enable() in MidiTestSuite constructor
55f46a1376 TESTBED: Fix GFXtests::HSVtoRGB() and caller
63ca74905c Merge pull request #43 from Littleboy/testbed-cleanup
Commit: 08c01d116b3abd99d7be61e2459c01e686ea1e29
https://github.com/scummvm/scummvm/commit/08c01d116b3abd99d7be61e2459c01e686ea1e29
Author: Julien (littleboy at users.sourceforge.net)
Date: 2011-06-07T00:52:15-07:00
Commit Message:
TESTBED: Add const modifiers to some parameters/functions
Changed paths:
engines/testbed/config.cpp
engines/testbed/config.h
engines/testbed/graphics.cpp
engines/testbed/graphics.h
engines/testbed/misc.cpp
engines/testbed/misc.h
diff --git a/engines/testbed/config.cpp b/engines/testbed/config.cpp
index 6adf829..467d28a 100644
--- a/engines/testbed/config.cpp
+++ b/engines/testbed/config.cpp
@@ -150,7 +150,7 @@ void TestbedInteractionDialog::addButton(uint w, uint h, const Common::String na
_yOffset += h;
}
-void TestbedInteractionDialog::addList(uint x, uint y, uint w, uint h, Common::Array<Common::String> &strArray, GUI::ListWidget::ColorList *colors, uint yPadding) {
+void TestbedInteractionDialog::addList(uint x, uint y, uint w, uint h, const Common::Array<Common::String> &strArray, GUI::ListWidget::ColorList *colors, uint yPadding) {
_yOffset += yPadding;
GUI::ListWidget *list = new GUI::ListWidget(this, x, y, w, h);
list->setEditable(false);
@@ -186,13 +186,13 @@ void TestbedConfigManager::writeTestbedConfigToStream(Common::WriteStream *ws) {
ws->flush();
}
-Common::SeekableReadStream *TestbedConfigManager::getConfigReadStream() {
+Common::SeekableReadStream *TestbedConfigManager::getConfigReadStream() const {
// Look for config file using SearchMan
Common::SeekableReadStream *rs = SearchMan.createReadStreamForMember(_configFileName);
return rs;
}
-Common::WriteStream *TestbedConfigManager::getConfigWriteStream() {
+Common::WriteStream *TestbedConfigManager::getConfigWriteStream() const {
// Look for config file in game-path
const Common::String &path = ConfMan.get("path");
Common::WriteStream *ws;
diff --git a/engines/testbed/config.h b/engines/testbed/config.h
index c0df65a..fd5588a 100644
--- a/engines/testbed/config.h
+++ b/engines/testbed/config.h
@@ -50,8 +50,8 @@ public:
~TestbedConfigManager() {}
void selectTestsuites();
void setConfigFile(const Common::String fName) { _configFileName = fName; }
- Common::SeekableReadStream *getConfigReadStream();
- Common::WriteStream *getConfigWriteStream();
+ Common::SeekableReadStream *getConfigReadStream() const;
+ Common::WriteStream *getConfigWriteStream() const;
void writeTestbedConfigToStream(Common::WriteStream *ws);
Testsuite *getTestsuiteByName(const Common::String &name);
bool stringToBool(const Common::String str) { return str.equalsIgnoreCase("true") ? true : false; }
@@ -119,7 +119,7 @@ public:
void addButton(uint w, uint h, const Common::String name, uint32 cmd, uint xOffset = 0, uint yPadding = 8);
void addButtonXY(uint x, uint y, uint w, uint h, const Common::String name, uint32 cmd);
void addText(uint w, uint h, const Common::String text, Graphics::TextAlign textAlign, uint xOffset, uint yPadding = 8);
- void addList(uint x, uint y, uint w, uint h, Common::Array<Common::String> &strArray, GUI::ListWidget::ColorList *colors = 0, uint yPadding = 8);
+ void addList(uint x, uint y, uint w, uint h, const Common::Array<Common::String> &strArray, GUI::ListWidget::ColorList *colors = 0, uint yPadding = 8);
protected:
Common::Array<GUI::ButtonWidget *> _buttonArray;
uint _xOffset;
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index d5b5da7..b7f6857 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -102,7 +102,7 @@ void GFXtests::initMousePalette() {
CursorMan.replaceCursorPalette(palette, 0, 3);
}
-Common::Rect GFXtests::computeSize(Common::Rect &cursorRect, int scalingFactor, int cursorTargetScale) {
+Common::Rect GFXtests::computeSize(const Common::Rect &cursorRect, int scalingFactor, int cursorTargetScale) {
if (cursorTargetScale == 1 || scalingFactor == 1) {
// Game data and cursor would be scaled equally.
// so dimensions would be same.
diff --git a/engines/testbed/graphics.h b/engines/testbed/graphics.h
index 7fa8f9d..07a68b5 100644
--- a/engines/testbed/graphics.h
+++ b/engines/testbed/graphics.h
@@ -32,7 +32,7 @@ namespace GFXtests {
void drawEllipse(int x, int y, int a, int b);
void setupMouseLoop(bool disableCursorPalette = false, const char *gfxModeName = "", int cursorTargetScale = 1);
void initMousePalette();
-Common::Rect computeSize(Common::Rect &cursorRect, int scalingFactor, int cursorTargetScale);
+Common::Rect computeSize(const Common::Rect &cursorRect, int scalingFactor, int cursorTargetScale);
void HSVtoRGB(int &rComp, int &gComp, int &bComp, int hue, int sat, int val);
Common::Rect drawCursor(bool cursorPaletteDisabled = false, const char *gfxModeName = "", int cursorTargetScale = 1);
diff --git a/engines/testbed/misc.cpp b/engines/testbed/misc.cpp
index 642e0b8..034d3eb 100644
--- a/engines/testbed/misc.cpp
+++ b/engines/testbed/misc.cpp
@@ -24,7 +24,7 @@
namespace Testbed {
-Common::String MiscTests::getHumanReadableFormat(TimeDate &td) {
+Common::String MiscTests::getHumanReadableFormat(const TimeDate &td) {
return Common::String::format("%d:%d:%d on %d/%d/%d (dd/mm/yyyy)", td.tm_hour, td.tm_min, td.tm_sec, td.tm_mday, td.tm_mon + 1, td.tm_year + 1900);
}
diff --git a/engines/testbed/misc.h b/engines/testbed/misc.h
index 415fe82..3f0772c 100644
--- a/engines/testbed/misc.h
+++ b/engines/testbed/misc.h
@@ -40,7 +40,7 @@ namespace MiscTests {
// Miscellaneous tests include testing datetime, timers and mutexes
// Helper functions for Misc tests
-Common::String getHumanReadableFormat(TimeDate &td);
+Common::String getHumanReadableFormat(const TimeDate &td);
void timerCallback(void *arg);
void criticalSection(void *arg);
Commit: 63625428366c8be0ed832924dbdb52f2e81df74e
https://github.com/scummvm/scummvm/commit/63625428366c8be0ed832924dbdb52f2e81df74e
Author: Julien (littleboy at users.sourceforge.net)
Date: 2011-06-07T00:56:18-07:00
Commit Message:
TESTBED: Remove dead code, unused arguments and unreferenced symbols
Changed paths:
engines/testbed/config.cpp
engines/testbed/detection.cpp
engines/testbed/graphics.cpp
engines/testbed/graphics.h
engines/testbed/savegame.cpp
engines/testbed/sound.h
engines/testbed/testsuite.cpp
engines/testbed/testsuite.h
diff --git a/engines/testbed/config.cpp b/engines/testbed/config.cpp
index 467d28a..2ffd1b2 100644
--- a/engines/testbed/config.cpp
+++ b/engines/testbed/config.cpp
@@ -159,7 +159,7 @@ void TestbedInteractionDialog::addList(uint x, uint y, uint w, uint h, const Com
_yOffset += h;
}
-void TestbedInteractionDialog::addButtonXY(uint x, uint y, uint w, uint h, const Common::String name, uint32 cmd) {
+void TestbedInteractionDialog::addButtonXY(uint x, uint /* y */, uint w, uint h, const Common::String name, uint32 cmd) {
_buttonArray.push_back(new GUI::ButtonWidget(this, x, _yOffset, w, h, name, 0, cmd));
}
@@ -174,7 +174,6 @@ void TestbedConfigManager::initDefaultConfiguration() {
}
void TestbedConfigManager::writeTestbedConfigToStream(Common::WriteStream *ws) {
- Common::String wStr;
for (Common::Array<Testsuite *>::const_iterator i = _testsuiteList.begin(); i < _testsuiteList.end(); i++) {
_configFileInterface.setKey("this", (*i)->getName(), boolToString((*i)->isEnabled()));
const Common::Array<Test *> &testList = (*i)->getTestList();
diff --git a/engines/testbed/detection.cpp b/engines/testbed/detection.cpp
index 91518b2..13af0f1 100644
--- a/engines/testbed/detection.cpp
+++ b/engines/testbed/detection.cpp
@@ -83,7 +83,7 @@ public:
return "Copyright (C) ScummVM";
}
- virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
+ virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription * /* desc */) const {
// Instantiate Engine even if the game data is not found.
*engine = new Testbed::TestbedEngine(syst);
return true;
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index b7f6857..5b30b3c 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -186,7 +186,7 @@ void GFXtests::HSVtoRGB(int &rComp, int &gComp, int &bComp, int hue, int sat, in
bComp = (int)(b * 255);
}
-Common::Rect GFXtests::drawCursor(bool cursorPaletteDisabled, const char *gfxModeName, int cursorTargetScale) {
+Common::Rect GFXtests::drawCursor(bool cursorPaletteDisabled, int cursorTargetScale) {
// Buffer initialized with yellow color
byte buffer[500];
memset(buffer, 2, sizeof(buffer));
@@ -249,7 +249,7 @@ void GFXtests::setupMouseLoop(bool disableCursorPalette, const char *gfxModeName
if (isFeaturePresent) {
- cursorRect = GFXtests::drawCursor(disableCursorPalette, gfxModeName, cursorTargetScale);
+ cursorRect = GFXtests::drawCursor(disableCursorPalette, cursorTargetScale);
Common::EventManager *eventMan = g_system->getEventManager();
Common::Event event;
@@ -741,7 +741,7 @@ TestExitStatus GFXtests::scaledCursors() {
if (isAspectRatioCorrected) {
info += "\nDisabling Aspect ratio correction, for letting cusors match exactly, will be restored after this test.";
}
-
+
if (Testsuite::handleInteractiveInput(info, "OK", "Skip", kOptionRight)) {
Testsuite::logPrintf("Info! Skipping test : Scaled Cursors\n");
return kTestSkipped;
@@ -753,7 +753,7 @@ TestExitStatus GFXtests::scaledCursors() {
}
- if (isAspectRatioCorrected) {
+ if (isAspectRatioCorrected) {
g_system->beginGFXTransaction();
g_system->setFeatureState(OSystem::kFeatureAspectRatioCorrection, false);
g_system->endGFXTransaction();
@@ -766,7 +766,7 @@ TestExitStatus GFXtests::scaledCursors() {
// for every graphics mode display cursors for cursorTargetScale 1, 2 and 3
// Switch Graphics mode
// FIXME: Crashes with "3x" mode now.:
-
+
info = Common::String::format("Testing : Scaled cursors with GFX Mode %s\n", gfxMode->name);
if (Testsuite::handleInteractiveInput(info, "OK", "Skip", kOptionRight)) {
Testsuite::logPrintf("\tInfo! Skipping sub-test : Scaled Cursors :: GFX Mode %s\n", gfxMode->name);
@@ -779,7 +779,7 @@ TestExitStatus GFXtests::scaledCursors() {
Testsuite::logPrintf("Info! Explicit exit requested during scaling test, this test may be incomplete\n");
return kTestSkipped;
}
-
+
g_system->beginGFXTransaction();
bool isGFXModeSet = g_system->setGraphicsMode(gfxMode->id);
@@ -807,7 +807,7 @@ TestExitStatus GFXtests::scaledCursors() {
if (Testsuite::handleInteractiveInput(info, "Yes", "No", kOptionRight)) {
Testsuite::logPrintf("\tInfo! Failed sub-test : Scaled Cursors :: GFX Mode %s\n", gfxMode->name);
}
-
+
if (Engine::shouldQuit()) {
// Explicit exit requested
Testsuite::logPrintf("Info! Explicit exit requested during scaling test, this test may be incomplete\n");
@@ -824,7 +824,7 @@ TestExitStatus GFXtests::scaledCursors() {
if (isAspectRatioCorrected) {
g_system->setFeatureState(OSystem::kFeatureAspectRatioCorrection, true);
}
-
+
OSystem::TransactionError gfxError = g_system->endGFXTransaction();
if (gfxError != OSystem::kTransactionSuccess || !isGFXModeSet) {
@@ -962,7 +962,7 @@ TestExitStatus GFXtests::paletteRotation() {
Testsuite::logPrintf("Info! Skipping test : palette Rotation\n");
return kTestSkipped;
}
- Common::Point pt(0, 10);
+
Testsuite::clearEntireScreen();
// Use 256 colors
@@ -1065,7 +1065,6 @@ TestExitStatus GFXtests::pixelFormats() {
}
Common::List<Graphics::PixelFormat> pfList = g_system->getSupportedFormats();
- Common::List<Graphics::PixelFormat>::const_iterator iter = pfList.begin();
int numFormatsTested = 0;
int numPassed = 0;
@@ -1073,7 +1072,7 @@ TestExitStatus GFXtests::pixelFormats() {
Testsuite::logDetailedPrintf("Testing Pixel Formats. Size of list : %d\n", pfList.size());
- for (iter = pfList.begin(); iter != pfList.end(); iter++) {
+ for (Common::List<Graphics::PixelFormat>::const_iterator iter = pfList.begin(); iter != pfList.end(); iter++) {
numFormatsTested++;
if (iter->bytesPerPixel == 1) {
// Palettes already tested
diff --git a/engines/testbed/graphics.h b/engines/testbed/graphics.h
index 07a68b5..f3013fd 100644
--- a/engines/testbed/graphics.h
+++ b/engines/testbed/graphics.h
@@ -34,7 +34,7 @@ void setupMouseLoop(bool disableCursorPalette = false, const char *gfxModeName =
void initMousePalette();
Common::Rect computeSize(const Common::Rect &cursorRect, int scalingFactor, int cursorTargetScale);
void HSVtoRGB(int &rComp, int &gComp, int &bComp, int hue, int sat, int val);
-Common::Rect drawCursor(bool cursorPaletteDisabled = false, const char *gfxModeName = "", int cursorTargetScale = 1);
+Common::Rect drawCursor(bool cursorPaletteDisabled = false, int cursorTargetScale = 1);
// will contain function declarations for GFX tests
TestExitStatus cursorTrails();
diff --git a/engines/testbed/savegame.cpp b/engines/testbed/savegame.cpp
index b19c8e3..b90c79a 100644
--- a/engines/testbed/savegame.cpp
+++ b/engines/testbed/savegame.cpp
@@ -158,11 +158,9 @@ TestExitStatus SaveGametests::testListingSavefile() {
}
}
return kTestPassed;
- } else {
- Testsuite::logDetailedPrintf("listing Savefiles failed!\n");
- return kTestFailed;
}
+ Testsuite::logDetailedPrintf("listing Savefiles failed!\n");
return kTestFailed;
}
diff --git a/engines/testbed/sound.h b/engines/testbed/sound.h
index 76d0c7b..fea7d9d 100644
--- a/engines/testbed/sound.h
+++ b/engines/testbed/sound.h
@@ -69,10 +69,6 @@ public:
const char *getDescription() const {
return "Sound Subsystem";
}
-
-private:
- bool _isTestDataFound;
-
};
} // End of namespace Testbed
diff --git a/engines/testbed/testsuite.cpp b/engines/testbed/testsuite.cpp
index 77211b3..655179a 100644
--- a/engines/testbed/testsuite.cpp
+++ b/engines/testbed/testsuite.cpp
@@ -113,7 +113,7 @@ bool Testsuite::handleInteractiveInput(const Common::String &textToDisplay, cons
return prompt.runModal() == result ? true : false;
}
-void Testsuite::displayMessage(const Common::String &textToDisplay, const char *defaultButton, const char *altButton) {
+void Testsuite::displayMessage(const Common::String &textToDisplay, const char *defaultButton) {
GUI::MessageDialog prompt(textToDisplay, defaultButton);
prompt.runModal();
}
@@ -214,10 +214,11 @@ uint Testsuite::parseEvents() {
return kSkipNext;
}
break;
+
case Common::EVENT_QUIT:
case Common::EVENT_RTL:
return kEngineQuit;
- break;
+
default:
break;
}
diff --git a/engines/testbed/testsuite.h b/engines/testbed/testsuite.h
index 3a3a78b..dc159ce 100644
--- a/engines/testbed/testsuite.h
+++ b/engines/testbed/testsuite.h
@@ -112,7 +112,7 @@ public:
*/
static bool handleInteractiveInput(const Common::String &textToDisplay, const char *opt1 = "Yes", const char *opt2 = "No", OptionSelected result = kOptionLeft);
- static void displayMessage(const Common::String &textToDisplay, const char *defaultButton = "OK", const char *altButton = 0);
+ static void displayMessage(const Common::String &textToDisplay, const char *defaultButton = "OK");
static Common::Rect writeOnScreen(const Common::String &textToDisplay, const Common::Point &pt, bool flag = false);
static void clearScreen(const Common::Rect &rect);
static void clearEntireScreen() {
@@ -145,7 +145,7 @@ public:
static void logPrintf(const char *s, ...) GCC_PRINTF(1, 2);
static void logDetailedPrintf(const char *s, ...) GCC_PRINTF(1, 2);
-
+
// Progress bar (Information Display) related methods.
/**
* Display region is in the bottom. Probably 1/4th of the game screen.
@@ -180,7 +180,7 @@ protected:
bool _isTsEnabled;
private:
-
+
/**
* Used from the code to decide if the engine needs to exit
*/
Commit: 04f4605f539c6ed5e95f53daaaca1bf0054a028a
https://github.com/scummvm/scummvm/commit/04f4605f539c6ed5e95f53daaaca1bf0054a028a
Author: Julien (littleboy at users.sourceforge.net)
Date: 2011-06-07T00:56:52-07:00
Commit Message:
TESTBED: Rename error variable to err (was hiding error() symbol)
Changed paths:
engines/testbed/savegame.cpp
diff --git a/engines/testbed/savegame.cpp b/engines/testbed/savegame.cpp
index b90c79a..226e988 100644
--- a/engines/testbed/savegame.cpp
+++ b/engines/testbed/savegame.cpp
@@ -133,11 +133,11 @@ TestExitStatus SaveGametests::testListingSavefile() {
writeDataToFile("tBedSavefileToList.1", "Save me!");
writeDataToFile("tBedSavefileToList.2", "Save me!");
- Common::Error error = saveFileMan->getError();
+ Common::Error err = saveFileMan->getError();
- if (error.getCode() != Common::kNoError) {
+ if (err.getCode() != Common::kNoError) {
// Abort. Some Error in writing files
- Testsuite::logDetailedPrintf("Error while creating savefiles: %s\n", error.getDesc().c_str());
+ Testsuite::logDetailedPrintf("Error while creating savefiles: %s\n", err.getDesc().c_str());
return kTestFailed;
}
@@ -171,8 +171,8 @@ TestExitStatus SaveGametests::testErrorMessages() {
// Try opening a non existing file
readAndVerifyData("tBedSomeNonExistentSaveFile.0", "File doesn't exists!");
- Common::Error error = saveFileMan->getError();
- if (error.getCode() == Common::kNoError) {
+ Common::Error err = saveFileMan->getError();
+ if (err.getCode() == Common::kNoError) {
// blunder! how come?
Testsuite::logDetailedPrintf("SaveFileMan.getError() failed\n");
return kTestFailed;
Commit: 063814b15c82403c257362af049715d7462225f5
https://github.com/scummvm/scummvm/commit/063814b15c82403c257362af049715d7462225f5
Author: Julien (littleboy at users.sourceforge.net)
Date: 2011-06-07T00:56:54-07:00
Commit Message:
TESTBED: Update some switch constructs for better control flow handling
Changed paths:
engines/testbed/config.cpp
engines/testbed/testbed.cpp
diff --git a/engines/testbed/config.cpp b/engines/testbed/config.cpp
index 2ffd1b2..6bd4c82 100644
--- a/engines/testbed/config.cpp
+++ b/engines/testbed/config.cpp
@@ -126,10 +126,13 @@ void TestbedOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd,
ws = _testbedConfMan->getConfigWriteStream();
_testbedConfMan->writeTestbedConfigToStream(ws);
delete ws;
- default:
- GUI::Dialog::handleCommand(sender, cmd, data);
+ break;
+ default:
+ break;
}
+
+ GUI::Dialog::handleCommand(sender, cmd, data);
}
void TestbedInteractionDialog::addText(uint w, uint h, const Common::String text, Graphics::TextAlign textAlign, uint xOffset, uint yPadding) {
diff --git a/engines/testbed/testbed.cpp b/engines/testbed/testbed.cpp
index 41a705e..152764e 100644
--- a/engines/testbed/testbed.cpp
+++ b/engines/testbed/testbed.cpp
@@ -76,12 +76,16 @@ void TestbedExitDialog::init() {
void TestbedExitDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) {
switch (cmd) {
+ default:
+ break;
+
case kCmdRerunTestbed :
ConfParams.setRerunFlag(true);
cmd = GUI::kCloseCmd;
- default:
- GUI::Dialog::handleCommand(sender, cmd, data);
+ break;
}
+
+ GUI::Dialog::handleCommand(sender, cmd, data);
}
bool TestbedEngine::hasFeature(EngineFeature f) const {
Commit: fe9ee92b252620b9bcf67e5bc37d5f5a64a03c56
https://github.com/scummvm/scummvm/commit/fe9ee92b252620b9bcf67e5bc37d5f5a64a03c56
Author: Julien (littleboy at users.sourceforge.net)
Date: 2011-06-07T00:56:56-07:00
Commit Message:
TESTBED: Cleanup boolean use in enable() function for fs and midi tests
Changed paths:
engines/testbed/fs.cpp
engines/testbed/midi.cpp
diff --git a/engines/testbed/fs.cpp b/engines/testbed/fs.cpp
index e2bedb1..62ac616 100644
--- a/engines/testbed/fs.cpp
+++ b/engines/testbed/fs.cpp
@@ -167,7 +167,7 @@ TestExitStatus FStests::testWriteFile() {
return kTestPassed;
}
- return kTestFailed;
+ return kTestFailed;
}
@@ -189,7 +189,7 @@ FSTestSuite::FSTestSuite() {
}
void FSTestSuite::enable(bool flag) {
- Testsuite::enable(ConfParams.isGameDataFound() & flag);
+ Testsuite::enable(ConfParams.isGameDataFound() ? flag : false);
}
} // End of namespace Testbed
diff --git a/engines/testbed/midi.cpp b/engines/testbed/midi.cpp
index 54be866..af5260c 100644
--- a/engines/testbed/midi.cpp
+++ b/engines/testbed/midi.cpp
@@ -147,7 +147,7 @@ MidiTestSuite::MidiTestSuite() {
}
void MidiTestSuite::enable(bool flag) {
- Testsuite::enable(_isMidiDataFound & flag);
+ Testsuite::enable(_isMidiDataFound ? flag : false);
}
}
Commit: 3e1c4f8e1624f645c77e1105742ed56e36a1d6f7
https://github.com/scummvm/scummvm/commit/3e1c4f8e1624f645c77e1105742ed56e36a1d6f7
Author: Julien (littleboy at users.sourceforge.net)
Date: 2011-06-07T00:56:57-07:00
Commit Message:
TESTBED: Specialize call to enable() in MidiTestSuite constructor
Changed paths:
engines/testbed/midi.cpp
diff --git a/engines/testbed/midi.cpp b/engines/testbed/midi.cpp
index af5260c..69d361b 100644
--- a/engines/testbed/midi.cpp
+++ b/engines/testbed/midi.cpp
@@ -142,7 +142,7 @@ MidiTestSuite::MidiTestSuite() {
// add some fallback test if filesystem loading failed
Testsuite::logPrintf("Warning! Midi: Sound data file music.mid not found\n");
_isMidiDataFound = false;
- enable(false);
+ MidiTestSuite::enable(false);
}
}
Commit: 55f46a13767e75ffe40582c35a22bbccbb7b1568
https://github.com/scummvm/scummvm/commit/55f46a13767e75ffe40582c35a22bbccbb7b1568
Author: Julien (littleboy at users.sourceforge.net)
Date: 2011-06-07T00:59:12-07:00
Commit Message:
TESTBED: Fix GFXtests::HSVtoRGB() and caller
- update passed values and not local variables when s == 0
- initialize r, g, b values in palette rotation test instead of passing unitialized variables
Changed paths:
engines/testbed/graphics.cpp
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index 5b30b3c..36ec726 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -137,7 +137,7 @@ void GFXtests::HSVtoRGB(int &rComp, int &gComp, int &bComp, int hue, int sat, in
float f, p, q, t;
if (s == 0) {
- r = g = b = v * 255;
+ rComp = gComp = bComp = (int)(v * 255);
return;
}
@@ -969,6 +969,7 @@ TestExitStatus GFXtests::paletteRotation() {
byte palette[256 * 3] = {0};
int r, g, b;
+ r = g = b = 0;
int colIndx;
for (int i = 0; i < 256; i++) {
Commit: 63ca74905c4d6c4d98812b5b02bd98aa7894055b
https://github.com/scummvm/scummvm/commit/63ca74905c4d6c4d98812b5b02bd98aa7894055b
Author: Max Horn (max at quendi.de)
Date: 2011-06-07T01:47:47-07:00
Commit Message:
Merge pull request #43 from Littleboy/testbed-cleanup
Testbed engine cleanup
Changed paths:
engines/testbed/config.cpp
engines/testbed/config.h
engines/testbed/detection.cpp
engines/testbed/fs.cpp
engines/testbed/graphics.cpp
engines/testbed/graphics.h
engines/testbed/midi.cpp
engines/testbed/misc.cpp
engines/testbed/misc.h
engines/testbed/savegame.cpp
engines/testbed/sound.h
engines/testbed/testbed.cpp
engines/testbed/testsuite.cpp
engines/testbed/testsuite.h
More information about the Scummvm-git-logs
mailing list