comparison render_sdl.c @ 1441:8a3d3bb2cd08

Clear display in SDL2 renderer before doing the texture copy. This gets rid of the artifacts noted in ticket:29
author Michael Pavone <pavone@retrodev.com>
date Thu, 24 Aug 2017 19:40:53 -0700
parents 87493f585c7f
children c5c022c7aa54 b505083dcd87
comparison
equal deleted inserted replaced
1440:7d4483944d4d 1441:8a3d3bb2cd08
677 .x = overscan_left[video_standard], 677 .x = overscan_left[video_standard],
678 .y = overscan_top[video_standard], 678 .y = overscan_top[video_standard],
679 .w = width, 679 .w = width,
680 .h = height 680 .h = height
681 }; 681 };
682 SDL_SetRenderDrawColor(main_renderer, 0, 0, 0, 255);
683 SDL_RenderClear(main_renderer);
682 SDL_RenderCopy(main_renderer, sdl_textures[which], &src_clip, &main_clip); 684 SDL_RenderCopy(main_renderer, sdl_textures[which], &src_clip, &main_clip);
683 SDL_RenderPresent(main_renderer); 685 SDL_RenderPresent(main_renderer);
684 #ifndef DISABLE_OPENGL 686 #ifndef DISABLE_OPENGL
685 } 687 }
686 #endif 688 #endif