Author: mordante
Date: Sat Apr 18 00:47:08 2009
New Revision: 34999

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34999&view=rev
Log:
Fix a compiler warning for USE_TINY_GUI.

Modified:
    trunk/src/multiplayer_ui.cpp

Modified: trunk/src/multiplayer_ui.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_ui.cpp?rev=34999&r1=34998&r2=34999&view=diff
==============================================================================
--- trunk/src/multiplayer_ui.cpp (original)
+++ trunk/src/multiplayer_ui.cpp Sat Apr 18 00:47:08 2009
@@ -487,9 +487,13 @@
 }
 
 
+#ifdef USE_TINY_GUI
+void ui::handle_key_event(const SDL_KeyboardEvent& /*event*/)
+{
+}
+#else
 void ui::handle_key_event(const SDL_KeyboardEvent& event)
 {
-#ifndef USE_TINY_GUI
        //On enter, adds the current chat message to the chat textbox.
        if((event.keysym.sym == SDLK_RETURN || event.keysym.sym == 
SDLK_KP_ENTER) && !entry_textbox_.text().empty()) {
 
@@ -515,8 +519,8 @@
                }
                entry_textbox_.set_text(text);
        }
+}
 #endif
-}
 
 void ui::process_message(const config& msg, const bool whisper) {
        const std::string& sender = msg["sender"];


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to