JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed bug where screen wasn't redrawn when paused and toggling fullscreen mode
authorJason Woofenden <jason283@herkamire.com>
Sun, 26 Apr 2009 19:38:48 +0000 (15:38 -0400)
committerJason Woofenden <jason283@herkamire.com>
Sun, 26 Apr 2009 19:57:55 +0000 (15:57 -0400)
main.c

diff --git a/main.c b/main.c
index 2bf7715..a2d2e93 100644 (file)
--- a/main.c
+++ b/main.c
@@ -68,6 +68,8 @@ struct dot {
        int heat;     // heat multiplier (color).
 };
 
+void draw(void);
+
 struct dot edot[MAXENGINEDOTS], *dotptr = edot;
 struct dot bdot[MAXBANGDOTS];
 
@@ -362,6 +364,9 @@ void
 toggle_fullscreen() {
        opt_fullscreen = 1 - opt_fullscreen;
        set_video_mode();
+       if(paused) {
+               draw();
+       }
 }