Only redraw the referee when its state changes
commit77b2e75965e518549f1419c8933b0a69c9499f38
authorThomas Perl <thp@perli.net>
Mon, 26 Jan 2009 23:08:50 +0000 (27 00:08 +0100)
committerThomas Perl <thp@perli.net>
Tue, 27 Jan 2009 11:37:37 +0000 (27 12:37 +0100)
tree8395220e7c1bae55819ddca7ca0e255a05d3b22f
parent4aaab9372afa484910abdad8bfeb37d5cd2c3605
Only redraw the referee when its state changes

Same principle as with the score string - remember the
last "position" of the referee and if it has changed,
redraw the back buffer. This saves a lot of painting.
game.c
game.h