From a7aa92232fd5ee20c13cdff4a764d606f72d8d0c Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 3 Sep 2021 16:01:59 -0700 Subject: [PATCH] Remove redundant FillRect when drawing text boxes This was already done in the drawtextbox function... so we were just double-drawing the text box backing for absolutely no reason. --- desktop_version/src/Graphics.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index c2301667..7dc124be 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1013,10 +1013,6 @@ void Graphics::drawgui(void) } else { - SDL_Rect textrect = {textbox[i].xp, yp, textbox[i].w, textbox[i].h}; - - FillRect(backBuffer, textrect, textbox[i].r/6, textbox[i].g/6, textbox[i].b / 6 ); - drawtextbox(textbox[i].xp, yp, textbox[i].w/8, textbox[i].h/8, textbox[i].r, textbox[i].g, textbox[i].b); for (size_t j = 0; j < textbox[i].line.size(); j++)