nixos/patches/cdda-wayland-sdl-fix.patch

18 lines
747 B
Diff

diff --git a/src/sdltiles.cpp b/src/sdltiles.cpp
index d7a68d65d0..eef7bef83e 100644
--- a/src/sdltiles.cpp
+++ b/src/sdltiles.cpp
@@ -545,11 +545,11 @@ void refresh_display()
// Select default target (the window), copy rendered buffer
// there, present it, select the buffer as target again.
SetRenderTarget( renderer, nullptr );
+ RenderClear( renderer );
#if defined(__ANDROID__)
SDL_Rect dstrect = get_android_render_rect( TERMINAL_WIDTH * fontwidth,
TERMINAL_HEIGHT * fontheight );
SetRenderDrawColor( renderer, 0, 0, 0, 255 );
- RenderClear( renderer );
RenderCopy( renderer, display_buffer, NULL, &dstrect );
#else
RenderCopy( renderer, display_buffer, nullptr, nullptr );