aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/gfx.h
diff options
context:
space:
mode:
authorBendegúz Nagy2016-07-02 23:10:05 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commitce1c52bceb661fafdd828bb89bdd34563a38124f (patch)
tree95ae9f69140398ebe5c8b700e4c0b809c1d37c34 /engines/dm/gfx.h
parent883370eb7d0dfdfbc1ef15ed9f0458cdc1423368 (diff)
downloadscummvm-rg350-ce1c52bceb661fafdd828bb89bdd34563a38124f.tar.gz
scummvm-rg350-ce1c52bceb661fafdd828bb89bdd34563a38124f.tar.bz2
scummvm-rg350-ce1c52bceb661fafdd828bb89bdd34563a38124f.zip
DM: Remove blitToScreen overloads
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r--engines/dm/gfx.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h
index 60f6cdb630..7166908b83 100644
--- a/engines/dm/gfx.h
+++ b/engines/dm/gfx.h
@@ -321,14 +321,6 @@ public:
}; // @ FIELD_ASPECT
-class Viewport {
-public:
- uint16 _posX, _posY;
- uint16 _width, _height;
- Viewport() {}
- Viewport(uint16 posX, uint16 posY, uint16 width, uint16 height)
- :_posX(posX), _posY(posY), _width(width), _height(height) {}
-};
class CreatureAspect {
public:
@@ -398,9 +390,6 @@ public:
byte _D3ReplacementColor;
}; // @ CREATURE_REPLACEMENT_COLOR_SET
-extern Viewport gDefultViewPort;
-extern Viewport g296_DungeonViewport;
-
#define k0_DoorButton 0 // @ C0_DOOR_BUTTON
#define k0_WallOrnInscription 0 // @ C0_WALL_ORNAMENT_INSCRIPTION
@@ -559,20 +548,14 @@ public:
void blitToBitmap(byte *srcBitmap, uint16 srcWidth, uint16 srcX, uint16 srcY,
- byte *destBitmap, uint16 destWidth, Box &box, Color transparent = k255_ColorNoTransparency, Viewport &viewport = gDefultViewPort);
+ byte *destBitmap, uint16 destWidth, Box &box, Color transparent = k255_ColorNoTransparency);
void blitToBitmap(byte *srcBitmap, uint16 srcWidth, uint16 srcHeight, byte *destBitmap, uint16 destWidth, uint16 destX = 0, uint16 destY = 0);
void blitBoxFilledWithMaskedBitmap(byte *src, byte *dest, byte *mask, byte *tmp, Box &box, int16 lastUnitIndex,
int16 firstUnitIndex, int16 destPixelWidth, Color transparent,
- int16 xPos, int16 yPos, int16 destHeight, int16 height2, Viewport &viewport = gDefultViewPort); // @ F0133_VIDEO_BlitBoxFilledWithMaskedBitmap
+ int16 xPos, int16 yPos, int16 destHeight, int16 height2); // @ F0133_VIDEO_BlitBoxFilledWithMaskedBitmap
void blitToBitmapShrinkWithPalChange(byte *srcBitmap, int16 srcWidth, int16 srcHight,
byte *destBitmap, int16 destWidth, int16 destHeight, byte *palChange); // @ F0129_VIDEO_BlitShrinkWithPaletteChanges
- void blitBoxFilledWithMaskedBitmapToScreen(byte *src, byte *mask, byte *tmp, Box &box, int16 lastUnitIndex,
- int16 firstUnitIndex, int16 destPixelWidth, Color transparent,
- int16 xPos, int16 yPos, int16 destHeight, int16 height2, Viewport &viewport = g296_DungeonViewport); // @ F0133_VIDEO_BlitBoxFilledWithMaskedBitmap
- void blitToScreen(byte *srcBitmap, uint16 srcWidth, uint16 srcX, uint16 srcY,
- Box &box,
- Color transparent = k255_ColorNoTransparency, Viewport &viewport = gDefultViewPort);
void flipBitmapHorizontal(byte *bitmap, uint16 width, uint16 height); // @ F0103_DUNGEONVIEW_DrawDoorFrameBitmapFlippedHorizontally
void flipBitmapVertical(byte *bitmap, uint16 width, uint16 height);
@@ -580,7 +563,8 @@ public:
void f134_fillBitmap(byte *bitmap, uint16 width, uint16 height, Color color); // @ F0134_VIDEO_FillBitmap
void clearScreen(Color color);
- void clearScreenBox(Color color, Box &box, Viewport &viewport = gDefultViewPort); // @ D24_FillScreenBox, F0550_VIDEO_FillScreenBox
+ void clearScreenBox(Color color, Box &box); // @ D24_FillScreenBox, F0550_VIDEO_FillScreenBox
+ void f135_fillBoxBitmap(byte *destBitmap, Box &box, Color color, int16 pixelWidth, int16 height);
void drawDungeon(direction dir, int16 posX, int16 posY); // @ F0128_DUNGEONVIEW_Draw_CPSF
void updateScreen();
void f97_drawViewport(int16 palSwitchingRequestedState); // @ F0097_DUNGEONVIEW_DrawViewport