diff options
author | richiesams | 2013-08-17 20:32:34 -0500 |
---|---|---|
committer | richiesams | 2013-08-18 19:52:57 -0500 |
commit | 80cba07b311a56a9e3dd6ce5ca5a291299b95a8d (patch) | |
tree | 6d18b506b1ec32c9e1bce45dd2bc911373006ceb /engines/zvision | |
parent | acea03a9cd9ce14b210fe4b2fc650e34e8ae657b (diff) | |
download | scummvm-rg350-80cba07b311a56a9e3dd6ce5ca5a291299b95a8d.tar.gz scummvm-rg350-80cba07b311a56a9e3dd6ce5ca5a291299b95a8d.tar.bz2 scummvm-rg350-80cba07b311a56a9e3dd6ce5ca5a291299b95a8d.zip |
ZVISION: Allow destinations to be negative
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/render_manager.cpp | 4 | ||||
-rw-r--r-- | engines/zvision/render_manager.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp index 7d8ba75b8d..932c797c11 100644 --- a/engines/zvision/render_manager.cpp +++ b/engines/zvision/render_manager.cpp @@ -139,7 +139,7 @@ void RenderManager::renderSubRectToScreen(Graphics::Surface &surface, int16 dest } } -void RenderManager::renderImageToScreen(const Common::String &fileName, uint32 destinationX, uint32 destinationY, bool wrap) { +void RenderManager::renderImageToScreen(const Common::String &fileName, int16 destinationX, int16 destinationY, bool wrap) { Common::File file; if (!file.open(fileName)) { @@ -150,7 +150,7 @@ void RenderManager::renderImageToScreen(const Common::String &fileName, uint32 d renderImageToScreen(file, destinationX, destinationY); } -void RenderManager::renderImageToScreen(Common::SeekableReadStream &stream, uint32 destinationX, uint32 destinationY, bool wrap) { +void RenderManager::renderImageToScreen(Common::SeekableReadStream &stream, int16 destinationX, int16 destinationY, bool wrap) { // Read the magic number // Some files are true TGA, while others are TGZ uint32 fileType; diff --git a/engines/zvision/render_manager.h b/engines/zvision/render_manager.h index cdcd52b67d..9683ee0bf2 100644 --- a/engines/zvision/render_manager.h +++ b/engines/zvision/render_manager.h @@ -107,7 +107,7 @@ public: * @param destinationX X position where the image should be put. Coords are in working window space, not screen space! * @param destinationY Y position where the image should be put. Coords are in working window space, not screen space! */ - void renderImageToScreen(const Common::String &fileName, uint32 destinationX, uint32 destinationY, bool wrap = false); + void renderImageToScreen(const Common::String &fileName, int16 destinationX, int16 destinationY, bool wrap = false); /** * Blits the image or a portion of the image to the backbuffer. Actual screen updates won't happen until the end of the frame. @@ -117,7 +117,7 @@ public: * @param destinationX X position where the image should be put. Coords are in working window space, not screen space! * @param destinationY Y position where the image should be put. Coords are in working window space, not screen space! */ - void renderImageToScreen(Common::SeekableReadStream &stream, uint32 destinationX, uint32 destinationY, bool wrap = false); + void renderImageToScreen(Common::SeekableReadStream &stream, int16 destinationX, int16 destinationY, bool wrap = false); /** * Sets the current background image to be used by the RenderManager and immediately |