diff options
author | Nipun Garg | 2019-07-18 01:11:53 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:22 +0200 |
commit | e9e654d7db8c6b865c6f168f6f35663af85fce85 (patch) | |
tree | 571bb20ad35058a951bdacf574f384e345b330e2 /engines/hdb/gfx.h | |
parent | adb43a79b7ee01cda7c33f48d778fc9b57358716 (diff) | |
download | scummvm-rg350-e9e654d7db8c6b865c6f168f6f35663af85fce85.tar.gz scummvm-rg350-e9e654d7db8c6b865c6f168f6f35663af85fce85.tar.bz2 scummvm-rg350-e9e654d7db8c6b865c6f168f6f35663af85fce85.zip |
HDB: Convert _surface from struct to pointer
Diffstat (limited to 'engines/hdb/gfx.h')
-rw-r--r-- | engines/hdb/gfx.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/hdb/gfx.h b/engines/hdb/gfx.h index ce6ceb6502..1c993ec201 100644 --- a/engines/hdb/gfx.h +++ b/engines/hdb/gfx.h @@ -253,7 +253,7 @@ public: Picture(); ~Picture(); - Graphics::Surface load(Common::SeekableReadStream *stream); + Graphics::ManagedSurface *load(Common::SeekableReadStream *stream); int draw(int x, int y); int drawMasked(int x, int y, int alpha = 0xff); @@ -261,12 +261,12 @@ public: char *getName() { return _name; } - Graphics::ManagedSurface *getSurface() { return &_surface; } + Graphics::ManagedSurface *getSurface() { return _surface; } private: char _name[64]; - Graphics::ManagedSurface _surface; + Graphics::ManagedSurface *_surface; }; class Tile { @@ -275,7 +275,7 @@ public: Tile(); ~Tile(); - Graphics::Surface load(Common::SeekableReadStream *stream); + Graphics::ManagedSurface *load(Common::SeekableReadStream *stream); int draw(int x, int y); int drawMasked(int x, int y, int alpha = 0xff); @@ -285,7 +285,7 @@ public: private: char _name[64]; - Graphics::ManagedSurface _surface; + Graphics::ManagedSurface *_surface; }; } // End of Namespace HDB |