aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed
diff options
context:
space:
mode:
authorFilippos Karapetis2010-09-18 09:52:05 +0000
committerFilippos Karapetis2010-09-18 09:52:05 +0000
commit6fed6a75d53259f90b69ca951275e11d6c98042a (patch)
tree00d9ab7172c9fb9c3d8a7bada834e9f3ec3f0d3e /engines/testbed
parent928bcdbe094767fefb7c415e098d7d9e47bc078d (diff)
downloadscummvm-rg350-6fed6a75d53259f90b69ca951275e11d6c98042a.tar.gz
scummvm-rg350-6fed6a75d53259f90b69ca951275e11d6c98042a.tar.bz2
scummvm-rg350-6fed6a75d53259f90b69ca951275e11d6c98042a.zip
TESTBED: Fix warnings
svn-id: r52790
Diffstat (limited to 'engines/testbed')
-rw-r--r--engines/testbed/config.cpp5
-rw-r--r--engines/testbed/graphics.cpp2
2 files changed, 2 insertions, 5 deletions
diff --git a/engines/testbed/config.cpp b/engines/testbed/config.cpp
index 1cfb1bc395..1acbe72837 100644
--- a/engines/testbed/config.cpp
+++ b/engines/testbed/config.cpp
@@ -159,10 +159,7 @@ void TestbedInteractionDialog::addButtonXY(uint x, uint y, uint w, uint h, const
}
void TestbedInteractionDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) {
- switch (cmd) {
- default:
- GUI::Dialog::handleCommand(sender, cmd, data);
- }
+ GUI::Dialog::handleCommand(sender, cmd, data);
}
void TestbedConfigManager::initDefaultConfiguration() {
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index a732a74ae2..7e462a18b0 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -351,7 +351,7 @@ void GFXtests::drawEllipse(int cx, int cy, int a, int b) {
int width = g_system->getWidth();
int height = Testsuite::getDisplayRegionCoordinates().y;
byte *buffer = new byte[height * width];
- float theta;
+ double theta;
int x, y, x1, y1;
memset(buffer, 0, sizeof(byte) * width * height);