From: a bellenir Date: Wed, 30 Jul 2014 05:45:23 +0000 (+0000) Subject: actually fix aard-ifacts when leaving aardvark mode X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=96241782c80a65f20ec91c889155006a94cfeaa7;p=archive%2Fafm.git actually fix aard-ifacts when leaving aardvark mode --- diff --git a/source/screen.c b/source/screen.c index ca09c9f..2e930fd 100644 --- a/source/screen.c +++ b/source/screen.c @@ -60,13 +60,13 @@ void screen_deinit(void) { void screen_update(void) { /* Clear screen and update LINES and COLS */ - if(state_get_refresh_state() == REFRESH_ALL_WINS){ - endwin(); - screen_place_windows(); - } else if (state_get_refresh_state() == REFRESH_AARDVARK && state_get_aardvark_mode()){ + if(state_get_refresh_state() == REFRESH_AARDVARK && state_get_aardvark_mode()){ aardvark_draw(); - } else { + } else if(state_get_refresh_state() == REFRESH_CURR_WIN){ screen_refresh_curr_frame(); + } else { + endwin(); + screen_place_windows(); } /* Refresh and mark complete */ state_set_refresh_state(REFRESH_COMPLETE);