diff --git a/engines/testbed/config.cpp b/engines/testbed/config.cpp index 1cfb1bc3954..1acbe728376 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 a732a74ae23..7e462a18b01 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);