mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
e9c3b03eba
commit
a7aa92232f
1 changed files with 0 additions and 4 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue