From d50e3268251e579aae2ba3a814119e798cf8c2b1 Mon Sep 17 00:00:00 2001 From: natinusala Date: Mon, 27 May 2019 10:10:50 +0200 Subject: [PATCH] menu display: don't cancel scissoring if the rect is empty --- menu/menu_driver.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/menu/menu_driver.c b/menu/menu_driver.c index bcabff372e..fd7ea27e69 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -517,10 +517,6 @@ void menu_display_scissor_begin(video_frame_info_t *video_info, int x, int y, un height = menu_display_framebuf_height - y; if ((x + width) > menu_display_framebuf_width) width = menu_display_framebuf_width - x; - if (height <= 0) - return; - if (width <= 0) - return; menu_disp->scissor_begin(video_info, x, y, width, height); }