Removed black screen now

The function is not needed in SDL2
This commit is contained in:
Dimitris Panokostas 2017-01-25 12:02:23 +01:00
parent 22e28d66c1
commit 4d18a15216
3 changed files with 6 additions and 10 deletions

View file

@ -309,12 +309,12 @@ void flush_screen ()
init_row_map();
}
void black_screen_now(void)
{
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
SDL_RenderClear(renderer);
SDL_RenderPresent(renderer);
}
//void black_screen_now(void)
//{
// SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
// SDL_RenderClear(renderer);
// SDL_RenderPresent(renderer);
//}
static void graphics_subinit (void)
{
@ -600,7 +600,6 @@ bool target_graphics_buffer_update (void)
if (rate_changed)
{
black_screen_now();
fpscounter_reset();
time_per_frame = 1000 * 1000 / (currprefs.chipset_refreshrate);
}

View file

@ -558,8 +558,6 @@ void gui_display(int shortcut)
update_display(&changed_prefs);
/* Clear menu garbage at the bottom of the screen */
black_screen_now();
reset_sound();
resume_sound();
blkdev_exitgui();

View file

@ -25,7 +25,6 @@ void wait_for_vsync(void);
void saveAdfDir(void);
void update_display(struct uae_prefs *);
void black_screen_now(void);
void graphics_subshutdown(void);
void moveVertical(int value);