mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 13:35:40 +00:00
SDL_UnionRect: If both rects are empty, zero out the result struct.
This commit is contained in:
parent
fbbd0270eb
commit
c573ebe143
|
@ -148,6 +148,7 @@ SDL_UnionRect(const SDL_Rect * A, const SDL_Rect * B, SDL_Rect * result)
|
|||
if (SDL_RectEmpty(A)) {
|
||||
if (SDL_RectEmpty(B)) {
|
||||
/* A and B empty */
|
||||
SDL_zerop(result);
|
||||
return;
|
||||
} else {
|
||||
/* A empty, B not empty */
|
||||
|
|
Loading…
Reference in a new issue