summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-11 22:20:22 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-11 22:20:22 +0300
commitd9bef8817b5fa87869677a24b938b153175ef647 (patch)
tree9951db7ae53378949828526e08dbb5dcb54accc3
parent7ddef8737cc3946d407376dd8f9a805fb7ee6f3c (diff)
downloadplus-d9bef8817b5fa87869677a24b938b153175ef647.tar.gz
plus-d9bef8817b5fa87869677a24b938b153175ef647.tar.bz2
plus-d9bef8817b5fa87869677a24b938b153175ef647.tar.xz
plus-d9bef8817b5fa87869677a24b938b153175ef647.zip
Fix tests compilation for SDL 2.
-rw-r--r--src/render/mockgraphics.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/mockgraphics.cc b/src/render/mockgraphics.cc
index 05d3f1250..bf2618346 100644
--- a/src/render/mockgraphics.cc
+++ b/src/render/mockgraphics.cc
@@ -281,8 +281,8 @@ bool MockGraphics::setVideoMode(const int w, const int h,
return false;
}
- mRect.w = CAST_U16(mWindow->w);
- mRect.h = CAST_U16(mWindow->h);
+ mRect.w = CAST_U16(mRect.w);
+ mRect.h = CAST_U16(mRect.h);
return videoInfo();
}