Fixed warning C4701: potentially uninitialized local variable 'drawnTextRect' used

main
Sam Lantinga 2024-02-03 11:31:47 -08:00
parent 8eba5b75ca
commit c0b27ccef9
1 changed files with 2 additions and 0 deletions

View File

@ -468,7 +468,9 @@ static void _Redraw(int rendererID)
SDL_Renderer *renderer = state->renderers[rendererID];
SDL_FRect drawnTextRect, cursorRect, underlineRect;
drawnTextRect.x = textRect.x;
drawnTextRect.y = 0;
drawnTextRect.w = 0;
drawnTextRect.h = 0;
SDL_SetRenderDrawColor(renderer, backColor.r, backColor.g, backColor.b, backColor.a);
SDL_RenderFillRect(renderer, &textRect);