aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/gfx.h
diff options
context:
space:
mode:
authorWinterGrascph2016-05-04 12:50:06 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit4a8b34e993729dd90d12b1717977d8c4945e9325 (patch)
tree1cc5f883e5ad412515b6089052f57439504aaf84 /engines/dm/gfx.h
parent66c55db9f056a1c5c74e82e84650ac7fbbe4d899 (diff)
downloadscummvm-rg350-4a8b34e993729dd90d12b1717977d8c4945e9325.tar.gz
scummvm-rg350-4a8b34e993729dd90d12b1717977d8c4945e9325.tar.bz2
scummvm-rg350-4a8b34e993729dd90d12b1717977d8c4945e9325.zip
DM: Add the original palettes, edit palette loading accordingly
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r--engines/dm/gfx.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h
index 98d035be2c..acdabfa77c 100644
--- a/engines/dm/gfx.h
+++ b/engines/dm/gfx.h
@@ -6,9 +6,23 @@
namespace DM {
+enum dmPaletteEnum {
+ palSwoosh = 0,
+ palMousePointer = 1,
+ palCredits = 2,
+ palEntrance = 3,
+ palDungeonView0 = 4,
+ palDungeonView1 = 5,
+ palDungeonView2 = 6,
+ palDungeonView3 = 7,
+ palDungeonView4 = 8,
+ palDungeonView5 = 9,
+};
+
+
class DisplayMan {
DMEngine *_vm;
- byte *_currPalette;
+ dmPaletteEnum _currPalette;
uint16 _screenWidth;
uint16 _screenHeight;
byte *_vgaBuffer;
@@ -22,7 +36,7 @@ public:
~DisplayMan();
void setUpScreens(uint16 width, uint16 height);
void loadGraphics();
- void setPalette(byte *buff, uint16 colorCount);
+ void loadPalette(dmPaletteEnum palette);
void loadIntoBitmap(uint16 index, byte *destBitmap);
uint16 getImageWidth(uint16 index);
uint16 getImageHeight(uint16 index);