OpenTTD

Tasklist

FS#498 - No speedup when alt-tabbing in linux/sdl

Attached to Project: OpenTTD
Opened by ArmEagle (ArmEagle) - Monday, 01 January 2007, 16:31 GMT
Type Patch
Category Interface
Status Closed
Assigned To No-one
Operating System Linux
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

On Linux (0.5.0-RC1), when pressing alt-tab, the game would often speedup. I checked the win32_v.c and sdl_v.c files. The first does prevent this, but in the second no check for mod keys is done. So I added this

Diff in text, since it's small, and I don't know what/how files/dirs are normally compared.
video/sdl_v.c:

443c443,444
< if (keys[SDLK_TAB])
---
> /* Speed up using TAB, but disable for ALT+TAB of course */
> if (keys[SDLK_TAB] && !(mod & KMOD_ALT))
This task depends upon

Closed by  Remko Bijker (Rubidium)
Monday, 01 January 2007, 19:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r7727.
Comment by ArmEagle (ArmEagle) - Monday, 01 January 2007, 17:57 GMT
Ah, I just noticed 0.5.0-RC2 was already out. I checked the code and behavior still seems to be the same.

Loading...