mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
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.
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user