1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01: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:
Misa 2021-09-03 16:01:59 -07:00
parent e9c3b03eba
commit a7aa92232f

View file

@ -1013,10 +1013,6 @@ void Graphics::drawgui(void)
} }
else 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); 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++) for (size_t j = 0; j < textbox[i].line.size(); j++)