aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNeeraj Kumar2010-07-18 18:11:37 +0000
committerNeeraj Kumar2010-07-18 18:11:37 +0000
commitd2fc68222b68f17d5850cf214a22663cd86807ac (patch)
tree4fbaf7f8eee0384c74f2dd0f47645474becbc4c6 /engines
parent0ae45ed7ed955f88fc692c1fcdec8771ecbb0071 (diff)
downloadscummvm-rg350-d2fc68222b68f17d5850cf214a22663cd86807ac.tar.gz
scummvm-rg350-d2fc68222b68f17d5850cf214a22663cd86807ac.tar.bz2
scummvm-rg350-d2fc68222b68f17d5850cf214a22663cd86807ac.zip
fixed some typos
svn-id: r51000
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/config.h6
-rw-r--r--engines/testbed/misc.cpp6
2 files changed, 8 insertions, 4 deletions
diff --git a/engines/testbed/config.h b/engines/testbed/config.h
index 12dd59b31e..b141330b3b 100644
--- a/engines/testbed/config.h
+++ b/engines/testbed/config.h
@@ -82,8 +82,10 @@ public:
void setColorAll(GUI::ThemeEngine::FontColor color) {
for (uint i = 0; i < _listColors.size(); i++) {
- _listColors[i] = color;
- _list[i] += " (selected)";
+ if (!_list[i].contains("selected")) {
+ _listColors[i] = color;
+ _list[i] += " (selected)";
+ }
}
draw();;
}
diff --git a/engines/testbed/misc.cpp b/engines/testbed/misc.cpp
index 632e4ca81f..8a27e324ec 100644
--- a/engines/testbed/misc.cpp
+++ b/engines/testbed/misc.cpp
@@ -30,7 +30,7 @@ namespace Testbed {
void MiscTests::getHumanReadableFormat(TimeDate &td, Common::String &date) {
// XXX: can use snprintf?
char strDate[100];
- snprintf(strDate, 100, "%d:%d:%d on %d/%d/%d (dd/mm/yy)", td.tm_hour, td.tm_min, td.tm_sec, td.tm_mday, td.tm_mon, td.tm_year);
+ snprintf(strDate, 100, "%d:%d:%d on %d/%d/%d (dd/mm/yy)", td.tm_hour, td.tm_min, td.tm_sec, td.tm_mday, td.tm_mon, td.tm_year + 1900);
date = strDate;
return;
}
@@ -76,7 +76,6 @@ bool MiscTests::testDateTime() {
Testsuite::logDetailedPrintf("Current Time and Date: ");
Common::String dateTimeNow;
getHumanReadableFormat(t1, dateTimeNow);
- Testsuite::logDetailedPrintf("%s\n", dateTimeNow.c_str());
if (Testsuite::isSessionInteractive) {
// Directly verify date
@@ -87,6 +86,9 @@ bool MiscTests::testDateTime() {
}
}
+ g_system->getTimeAndDate(t1);
+ getHumanReadableFormat(t1, dateTimeNow);
+ Testsuite::logDetailedPrintf("%s\n", dateTimeNow.c_str());
// Now, Put some delay
g_system->delayMillis(2000);
g_system->getTimeAndDate(t2);