Slowdown SDL while minimized
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Mar 2008 19:20:33 +0000 (19:20 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Mar 2008 19:20:33 +0000 (19:20 +0000)
commitf442e08b418785e13b1161edfa9e0c72cc324c41
tree1d70820bd63eaeb9c97adb62dbfb65a100ef5438
parent4c44bdcb704945980898a04c556d1377c267a3f1
Slowdown SDL while minimized

When SDL is invisible/minimized, there is no need to keep calling the
VGA refresh 33 times per second.  This patch reduces in that case the
rate to 2 times per second, which should be responsive enough for the
un-minimizing event.

(Samuel Thibault)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4050 c046a42c-6fe2-441c-8c8c-71466251a162
console.h
sdl.c
vl.c