mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
ZVISION: Allow destinations to be negative
This commit is contained in:
parent
acea03a9cd
commit
80cba07b31
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user