diff options
author | Martin Kiewitz | 2009-10-06 16:14:40 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-06 16:14:40 +0000 |
commit | 14dfa5d7b01fba21c3da100830febbcdd1532d8c (patch) | |
tree | aaea4035a41e5b979178fa3220aaf5d780a365e9 /engines/sci/gui/gui_view.h | |
parent | 855af31757d20ace18f8b96c09d44571aacc049b (diff) | |
download | scummvm-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.h | 11 |
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 }; |