Skip to content
Snippets Groups Projects
Commit eb8de9cd authored by deuce's avatar deuce
Browse files

Throw out the last rect when changing modes.

parent 09ef59ae
No related branches found
No related tags found
No related merge requests found
......@@ -382,6 +382,10 @@ static void init_mode_internal(int mode)
pthread_mutex_lock(&blinker_lock);
pthread_mutex_lock(&vstatlock);
if (last) {
bitmap_drv_free_rect(last);
last = NULL;
}
bitmap_drv_init_mode(mode, &bitmap_width, &bitmap_height);
/* Deal with 40 col doubling */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment