mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-12 17:42:32 +00:00
Fixed warning C4701: potentially uninitialized local variable 'drawnTextRect' used
This commit is contained in:
@@ -468,7 +468,9 @@ static void _Redraw(int rendererID)
|
|||||||
SDL_Renderer *renderer = state->renderers[rendererID];
|
SDL_Renderer *renderer = state->renderers[rendererID];
|
||||||
SDL_FRect drawnTextRect, cursorRect, underlineRect;
|
SDL_FRect drawnTextRect, cursorRect, underlineRect;
|
||||||
drawnTextRect.x = textRect.x;
|
drawnTextRect.x = textRect.x;
|
||||||
|
drawnTextRect.y = 0;
|
||||||
drawnTextRect.w = 0;
|
drawnTextRect.w = 0;
|
||||||
|
drawnTextRect.h = 0;
|
||||||
|
|
||||||
SDL_SetRenderDrawColor(renderer, backColor.r, backColor.g, backColor.b, backColor.a);
|
SDL_SetRenderDrawColor(renderer, backColor.r, backColor.g, backColor.b, backColor.a);
|
||||||
SDL_RenderFillRect(renderer, &textRect);
|
SDL_RenderFillRect(renderer, &textRect);
|
||||||
|
|||||||
Reference in New Issue
Block a user