mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-12-13 05:33:27 +08:00
Fixed warning C4701: potentially uninitialized local variable 'drawnTextRect' used
This commit is contained in:
parent
8eba5b75ca
commit
c0b27ccef9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user