diff options
author | Paul Gilbert | 2014-08-24 12:32:11 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-24 12:32:11 -0400 |
commit | 89a3c43da1318644b14531b69ed1b38708a6413a (patch) | |
tree | da2628c6963a4bef68ca83027972bb2334197ce8 /engines/access/asurface.cpp | |
parent | 1073646c8e20940ec606edac06ffd3e2eb015f49 (diff) | |
download | scummvm-rg350-89a3c43da1318644b14531b69ed1b38708a6413a.tar.gz scummvm-rg350-89a3c43da1318644b14531b69ed1b38708a6413a.tar.bz2 scummvm-rg350-89a3c43da1318644b14531b69ed1b38708a6413a.zip |
ACCESS: More work on inventory screen setup
Diffstat (limited to 'engines/access/asurface.cpp')
-rw-r--r-- | engines/access/asurface.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp index ce977f6d83..0db44c4934 100644 --- a/engines/access/asurface.cpp +++ b/engines/access/asurface.cpp @@ -208,6 +208,9 @@ void ASurface::plotImage(SpriteResource *sprite, int frameNum, const Common::Poi } void ASurface::copyTo(ASurface *dest, const Common::Point &destPos) { + if (dest->getPixels() == nullptr) + dest->create(w, h); + for (int yp = 0; yp < h; ++yp) { byte *srcP = (byte *)getBasePtr(0, yp); byte *destP = (byte *)dest->getBasePtr(destPos.x, destPos.y + yp); |