aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui/gui_view.h
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-06 16:14:40 +0000
committerMartin Kiewitz2009-10-06 16:14:40 +0000
commit14dfa5d7b01fba21c3da100830febbcdd1532d8c (patch)
treeaaea4035a41e5b979178fa3220aaf5d780a365e9 /engines/sci/gui/gui_view.h
parent855af31757d20ace18f8b96c09d44571aacc049b (diff)
downloadscummvm-rg350-14dfa5d7b01fba21c3da100830febbcdd1532d8c.tar.gz
scummvm-rg350-14dfa5d7b01fba21c3da100830febbcdd1532d8c.tar.bz2
scummvm-rg350-14dfa5d7b01fba21c3da100830febbcdd1532d8c.zip
SCI/newgui: palette functions from SciGuiGfx now in SciGuiPalette
svn-id: r44698
Diffstat (limited to 'engines/sci/gui/gui_view.h')
-rw-r--r--engines/sci/gui/gui_view.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/engines/sci/gui/gui_view.h b/engines/sci/gui/gui_view.h
index b2bf9d7d35..c356fbe579 100644
--- a/engines/sci/gui/gui_view.h
+++ b/engines/sci/gui/gui_view.h
@@ -47,11 +47,9 @@ struct sciViewLoopInfo {
class SciGuiView {
public:
- SciGuiView(ResourceManager *resMan, SciGuiScreen *screen, GuiResourceId resourceId);
+ SciGuiView(ResourceManager *resMan, SciGuiScreen *screen, SciGuiPalette *palette, GuiResourceId resourceId);
~SciGuiView();
- // TODO: Remove gfx reference after putting palette things into SciGuiScreen
-
GuiResourceId getResourceId();
int16 getWidth(GuiViewLoopNo loopNo, GuiViewCelNo celNo);
int16 getHeight(GuiViewLoopNo loopNo, GuiViewCelNo celNo);
@@ -61,16 +59,13 @@ public:
byte *getBitmap(GuiViewLoopNo loopNo, GuiViewCelNo celNo);
void draw(Common::Rect rect, Common::Rect clipRect, Common::Rect clipRectTranslated, GuiViewLoopNo loopNo, GuiViewCelNo celNo, byte priority, uint16 paletteNo);
- bool hasEmbeddedPal() const { return _embeddedPal; }
-
- GuiPalette *getPalette() { return &_palette; }
-
private:
void initData(GuiResourceId resourceId);
void unpackCel(GuiViewLoopNo loopNo, GuiViewCelNo celNo, byte *outPtr, uint16 pixelCount);
ResourceManager *_resMan;
SciGuiScreen *_screen;
+ SciGuiPalette *_palette;
GuiResourceId _resourceId;
byte *_resourceData;
@@ -78,7 +73,7 @@ private:
uint16 _loopCount;
sciViewLoopInfo *_loop;
bool _embeddedPal;
- GuiPalette _palette;
+ GuiPalette _viewPalette;
const byte *_EGAMapping; // simple translation map for all 16 colors
};