summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}