aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-27 06:00:48 -0400
committerPaul Gilbert2016-05-27 06:00:48 -0400
commite68de1d3b57baae7b67e20113c365fb64b46e0b6 (patch)
treed99a23dd3e8cfebf87cfb1d131d38b5968c3e8f5 /engines/access
parentbb0629dfc7c2cf1cec49fd3a6cce68b7f613adf0 (diff)
downloadscummvm-rg350-e68de1d3b57baae7b67e20113c365fb64b46e0b6.tar.gz
scummvm-rg350-e68de1d3b57baae7b67e20113c365fb64b46e0b6.tar.bz2
scummvm-rg350-e68de1d3b57baae7b67e20113c365fb64b46e0b6.zip
ACCESS: Remove redundant allocation in surface creation
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/asurface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp
index e92869bb41..37f4c7082e 100644
--- a/engines/access/asurface.cpp
+++ b/engines/access/asurface.cpp
@@ -110,7 +110,8 @@ void ImageEntryList::addToList(ImageEntry &ie) {
int BaseSurface::_clipWidth;
int BaseSurface::_clipHeight;
-BaseSurface::BaseSurface(): Graphics::Screen() {
+BaseSurface::BaseSurface(): Graphics::Screen(0, 0) {
+ free(); // Free the 0x0 surface allocated by Graphics::Screen
_leftSkip = _rightSkip = 0;
_topSkip = _bottomSkip = 0;
_lastBoundsX = _lastBoundsY = 0;