From eb9841897bbe93da6aa4ca2537a3e22b3a868d98 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Aug 2013 19:30:48 +0300 Subject: fix compilation warnings. --- src/sdl2graphics.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sdl2graphics.cpp') diff --git a/src/sdl2graphics.cpp b/src/sdl2graphics.cpp index 51493eb0f..e76335f3e 100644 --- a/src/sdl2graphics.cpp +++ b/src/sdl2graphics.cpp @@ -95,14 +95,14 @@ bool SDLGraphics::drawRescaledImage(const Image *const image, int srcX, int srcY const gcn::ClipRectangle &top = mClipStack.top(); const SDL_Rect &bounds = image->mBounds; - const SDL_Rect srcRect + const SDL_Rect srcRect = { static_cast(srcX + bounds.x), static_cast(srcY + bounds.y), static_cast(width), static_cast(height) }; - const SDL_Rect dstRect + const SDL_Rect dstRect = { static_cast(dstX + top.xOffset), static_cast(dstY + top.yOffset), @@ -128,7 +128,7 @@ bool SDLGraphics::drawImage2(const Image *const image, int srcX, int srcY, return false; const SDL_Rect &bounds = image->mBounds; - const SDL_Rect srcRect + const SDL_Rect srcRect = { static_cast(srcX + bounds.x), static_cast(srcY + bounds.y), @@ -136,7 +136,7 @@ bool SDLGraphics::drawImage2(const Image *const image, int srcX, int srcY, static_cast(height) }; - const SDL_Rect dstRect + const SDL_Rect dstRect = { static_cast(dstX + top.xOffset), static_cast(dstY + top.yOffset), @@ -491,7 +491,7 @@ bool SDLGraphics::calcWindow(ImageCollection *const vertCol, void SDLGraphics::fillRectangle(const gcn::Rectangle &rectangle) { const gcn::ClipRectangle &top = mClipStack.top(); - const SDL_Rect rect + const SDL_Rect rect = { static_cast(rectangle.x + top.xOffset), static_cast(rectangle.y + top.yOffset), @@ -518,7 +518,7 @@ bool SDLGraphics::pushClipArea(gcn::Rectangle area) const bool result = gcn::Graphics::pushClipArea(area); const gcn::ClipRectangle &carea = mClipStack.top(); - const SDL_Rect rect + const SDL_Rect rect = { static_cast(carea.x), static_cast(carea.y), @@ -537,7 +537,7 @@ void SDLGraphics::popClipArea() return; const gcn::ClipRectangle &carea = mClipStack.top(); - const SDL_Rect rect + const SDL_Rect rect = { static_cast(carea.x), static_cast(carea.y), @@ -562,7 +562,7 @@ void SDLGraphics::drawPoint(int x, int y) return; SDL_SetRenderDrawColor(mRenderer, mColor.r, mColor.g, mColor.b, mColor.a); - const SDL_Point point + const SDL_Point point = { x, y -- cgit v1.2.3-60-g2f50