From ee8d55375b947bac414e313425e4e872d30c39c7 Mon Sep 17 00:00:00 2001 From: Stephen Kennedy Date: Mon, 7 Jul 2008 15:45:48 +0000 Subject: - updates for GCC compilation - still having linker errors though :( svn-id: r32944 --- backends/common/virtual-keyboard.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'backends/common/virtual-keyboard.cpp') diff --git a/backends/common/virtual-keyboard.cpp b/backends/common/virtual-keyboard.cpp index 0ac6e4efad..f45769940a 100644 --- a/backends/common/virtual-keyboard.cpp +++ b/backends/common/virtual-keyboard.cpp @@ -112,7 +112,7 @@ bool VirtualKeyboard::loadKeyboardPack(Common::String packName) { // if no image then it means layout tag for the // required resolution was missing from the mode tag. if (!it->_value.image) { - warning("'%s' layout missing from '%s' mode", it->_value.resolution, it->_value.name); + warning("'%s' layout missing from '%s' mode", it->_value.resolution.c_str(), it->_value.name.c_str()); return false; } } @@ -134,6 +134,8 @@ void VirtualKeyboard::reposition() case kAlignRight: _pos.x = scrW - keyW; break; + default: + break; } } if (scrH != keyH) { @@ -144,6 +146,8 @@ void VirtualKeyboard::reposition() case kAlignBottom: _pos.y = scrH - keyH; break; + default: + break; } } } @@ -224,6 +228,8 @@ void VirtualKeyboard::runLoop() { case Common::EVENT_QUIT: _system->quit(); return; + default: + break; } } } -- cgit v1.2.3