equal
deleted
inserted
replaced
185 begin |
185 begin |
186 GameState:= previousGameState; |
186 GameState:= previousGameState; |
187 end |
187 end |
188 else if event.window.event = SDL_WINDOWEVENT_RESIZED then |
188 else if event.window.event = SDL_WINDOWEVENT_RESIZED then |
189 begin |
189 begin |
|
190 // way too broken right now |
|
191 (* |
190 cNewScreenWidth:= max(2 * (event.window.data1 div 2), cMinScreenWidth); |
192 cNewScreenWidth:= max(2 * (event.window.data1 div 2), cMinScreenWidth); |
191 cNewScreenHeight:= max(2 * (event.window.data2 div 2), cMinScreenHeight); |
193 cNewScreenHeight:= max(2 * (event.window.data2 div 2), cMinScreenHeight); |
192 cScreenResizeDelay:= RealTicks+500; |
194 cScreenResizeDelay:= RealTicks+500; |
|
195 *) |
193 end; |
196 end; |
194 {$ELSE} |
197 {$ELSE} |
195 SDL_KEYDOWN: if GameState = gsChat then |
198 SDL_KEYDOWN: if GameState = gsChat then |
196 KeyPressChat(event.key.keysym.unicode); |
199 KeyPressChat(event.key.keysym.unicode); |
197 SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then wheelDown:= true; |
200 SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then wheelDown:= true; |