Skip to content

Display and control your Android device

Remove the dark square when no texture is rendered

Romain Vimont198cc19afb23
diff --git a/app/src/screen.c b/app/src/screen.c
index 4bcb0c08..b02629d7 100644
--- a/app/src/screen.c
+++ b/app/src/screen.c
@@ -225,17 +225,6 @@ sc_screen_render(struct sc_screen *screen, bool update_content_rect) {
bool ok = false;
SDL_Texture *texture = screen->tex.texture;
if (!texture) {
- // Draw a dark 10x10 square in the top-right corner to distinguish a
- // black frame from the absence of a frame
- struct sc_size render_size = sc_sdl_get_render_output_size(renderer);
- SDL_SetRenderDrawColor(renderer, 0, 0, 0x33, 0xff);
- SDL_FRect rect = {
- .x = render_size.width - 20,
- .y = 10,
- .w = 10,
- .h = 10,
- };
- SDL_RenderFillRect(renderer, &rect);
goto end;
}