diff options
author | WinterGrascph | 2016-05-05 19:49:26 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 18ff2e9940f584041798af670a07c381a02918aa (patch) | |
tree | cf072b8c20ffa9399973ce14d6852b7bc5f1647f /engines/dm/gfx.h | |
parent | cb2bb82b32ade022eb626c6b8cc580abc5b9df8d (diff) | |
download | scummvm-rg350-18ff2e9940f584041798af670a07c381a02918aa.tar.gz scummvm-rg350-18ff2e9940f584041798af670a07c381a02918aa.tar.bz2 scummvm-rg350-18ff2e9940f584041798af670a07c381a02918aa.zip |
DM: Refactor DisplayMan::DrawFrame and Frame POD
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r-- | engines/dm/gfx.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h index 3ecffb1aba..e479c6cfc4 100644 --- a/engines/dm/gfx.h +++ b/engines/dm/gfx.h @@ -58,7 +58,8 @@ class DisplayMan { byte **_unpackedBitmaps; void unpackGraphics(); - void drawFrame(Frame &f); + inline void drawFrameToScreen(byte *bitmap, Frame &f, Color transparent); + inline void drawFrameToBitMap(byte *bitmap, Frame &f, Color transparent, byte *destBitmap, uint16 destWidth); public: DisplayMan(DMEngine *dmEngine); ~DisplayMan(); @@ -72,10 +73,11 @@ public: void DisplayMan::blitToBitmap(byte *srcBitmap, uint16 srcFromX, uint16 srcToX, uint16 srcFromY, uint16 srcToY, int16 srcWidth, uint16 destX, uint16 destY, byte *destBitmap, uint16 destWidth, Color transparent = colorNoTransparency); inline void DisplayMan::blitToScreen(byte *srcBitmap, uint16 srcFromX, uint16 srcToX, uint16 srcFromY, uint16 srcToY, - int16 srcWidth, uint16 destX, uint16 destY, Color transparent = colorNoTransparency); + int16 srcWidth, uint16 destX, uint16 destY, Color transparent = colorNoTransparency); byte *getCurrentVgaBuffer(); void updateScreen(); void drawDungeon(); + void clearScreen(Color color); }; } |