hedgewars/hwengine.pas
changeset 5052 74a81c276d67
parent 4976 088d40d8aba2
child 5066 d2684b6f02ce
--- a/hedgewars/hwengine.pas	Fri Mar 25 20:02:27 2011 -0400
+++ b/hedgewars/hwengine.pas	Sat Mar 26 22:49:38 2011 +0100
@@ -154,7 +154,7 @@
                     // sdl on iphone supports only ashii keyboards and the unicode field is deprecated in sdl 1.3
                     KeyPressChat(event.key.keysym.sym);
                 SDL_WINDOWEVENT:
-                    if event.wevent.event = SDL_WINDOWEVENT_SHOWN then
+                    if event.window.event = SDL_WINDOWEVENT_SHOWN then
                         cHasFocus:= true;
 {$ELSE}
                     KeyPressChat(event.key.keysym.unicode);