diff options
author | Bendegúz Nagy | 2016-07-03 02:19:22 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | f01a03e91865a4cec1119bb83a5682d8f5f25553 (patch) | |
tree | 68c5ccfbc0a7d62bc4f5330bc4e7bd008f286de6 /engines/dm/gfx.cpp | |
parent | c756d1755670ed26c0171b6207279e4c321293be (diff) | |
download | scummvm-rg350-f01a03e91865a4cec1119bb83a5682d8f5f25553.tar.gz scummvm-rg350-f01a03e91865a4cec1119bb83a5682d8f5f25553.tar.bz2 scummvm-rg350-f01a03e91865a4cec1119bb83a5682d8f5f25553.zip |
DM: Add default parameters to DipslayMan::f132_blitToBitmap
Diffstat (limited to 'engines/dm/gfx.cpp')
-rw-r--r-- | engines/dm/gfx.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp index 79669a11a4..a9c555e857 100644 --- a/engines/dm/gfx.cpp +++ b/engines/dm/gfx.cpp @@ -1018,7 +1018,9 @@ void DisplayMan::f466_loadIntoBitmap(uint16 index, byte *destBitmap) { } void DisplayMan::f132_blitToBitmap(byte *srcBitmap, byte *destBitmap, Box &box, uint16 srcX, uint16 srcY, uint16 srcWidth, - uint16 destWidth, Color transparent) { + uint16 destWidth, Color transparent, int16 srcHeight, int16 destHight) { + // Note: if you want to use srcHeight and destHight parameters, remove the defaults values and + // and complete the function calls at the callsites, otherwise their value can be the default -1 for (uint16 y = 0; y < box._y2 - box._y1; ++y) for (uint16 x = 0; x < box._x2 - box._x1; ++x) { byte srcPixel = srcBitmap[srcWidth * (y + srcY) + srcX + x]; |