Skip to content

Commit

Permalink
Don't use initializer list
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Dec 31, 2017
1 parent 6301bb8 commit ce3c7db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CSurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ SDL_Rect rect2SDL_Rect(const Rect& rect)
{
Point<Sint16> origin(rect.getOrigin());
Point<Uint16> size(rect.getSize());
SDL_Rect result{origin.x, origin.y, size.x, size.y};
SDL_Rect result;
result.x = origin.x;
result.y = origin.y;
result.w = size.x;
result.h = size.y;
return result;
}

Expand Down

0 comments on commit ce3c7db

Please sign in to comment.