diff options
author | Paul Gilbert | 2016-05-27 06:00:48 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-05-27 06:00:48 -0400 |
commit | e68de1d3b57baae7b67e20113c365fb64b46e0b6 (patch) | |
tree | d99a23dd3e8cfebf87cfb1d131d38b5968c3e8f5 /engines/access | |
parent | bb0629dfc7c2cf1cec49fd3a6cce68b7f613adf0 (diff) | |
download | scummvm-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.cpp | 3 |
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; |