summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-10-16 04:58:41 +0300
committerAndrei Karas <akaras@inbox.ru>2019-10-16 04:59:13 +0300
commit0a216e5d9a7f8965193d3999e2da7dcf87a9d555 (patch)
tree5488cb271426b51834726c306d1fa91053de6627
parenta103f05d6eba441e25bd2905597a88db0b58e7b0 (diff)
downloadmanaverse-0a216e5d9a7f8965193d3999e2da7dcf87a9d555.tar.gz
manaverse-0a216e5d9a7f8965193d3999e2da7dcf87a9d555.tar.bz2
manaverse-0a216e5d9a7f8965193d3999e2da7dcf87a9d555.tar.xz
manaverse-0a216e5d9a7f8965193d3999e2da7dcf87a9d555.zip
Fix some more code style issues [ci skip]
Fix style issues in sdl2softwaregraphics.cpp
-rw-r--r--src/render/sdl2softwaregraphics.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp
index 8eb0519f5..836c377df 100644
--- a/src/render/sdl2softwaregraphics.cpp
+++ b/src/render/sdl2softwaregraphics.cpp
@@ -841,7 +841,10 @@ int SDL2SoftwareGraphics::SDL_FakeUpperBlit(const SDL_Surface *restrict const
SDL_Rect *restrict dstrect)
const restrict2
{
- int srcx, srcy, w, h;
+ int srcx;
+ int srcy;
+ int w;
+ int h;
// Make sure the surfaces aren't locked
if (!src || !dst)
@@ -942,7 +945,8 @@ void SDL2SoftwareGraphics::fillRectangle(const Rect &restrict rectangle)
area.x + area.width : top.x + top.width;
const int y2 = area.y + area.height < top.y + top.height ?
area.y + area.height : top.y + top.height;
- int x, y;
+ int x;
+ int y;
SDL_LockSurface(mSurface);