aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/gui/gui.cpp4
-rw-r--r--engines/sci/gui/gui_gfx.cpp12
-rw-r--r--engines/sci/gui/gui_gfx.h8
3 files changed, 12 insertions, 12 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index 342ae74f37..6d5ad603fa 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -251,7 +251,7 @@ void SciGui::drawPicture(GuiResourceId pictureId, uint16 style, uint16 flags, in
void SciGui::drawCel(GuiResourceId viewId, GuiViewLoopNo loopNo, GuiViewCelNo celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo) {
_gfx->drawCel(viewId, loopNo, celNo, leftPos, topPos, priority, paletteNo);
- _gfx->SetCLUT(&_gfx->_sysPalette);
+ _gfx->setPalette(&_gfx->_sysPalette);
_screen->copyToScreen();
}
@@ -329,7 +329,7 @@ int16 SciGui::paletteFind(int r, int g, int b) {
void SciGui::paletteSetIntensity(int fromColor, int toColor, int intensity, bool setPalette) {
_gfx->PaletteSetIntensity(fromColor, toColor, intensity, &_gfx->_sysPalette);
if (setPalette) {
- _gfx->SetCLUT(&_gfx->_sysPalette);
+ _gfx->setPalette(&_gfx->_sysPalette);
}
}
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp
index 4698844160..724bf67e5e 100644
--- a/engines/sci/gui/gui_gfx.cpp
+++ b/engines/sci/gui/gui_gfx.cpp
@@ -147,7 +147,7 @@ void SciGuiGfx::SetEGApalette() {
_sysPalette.colors[i].r = 200;
_sysPalette.colors[i].used = 1;
}
- SetCLUT(&_sysPalette);
+ setPalette(&_sysPalette);
}
void SciGuiGfx::CreatePaletteFromData(byte *data, GuiPalette *paletteOut) {
@@ -212,7 +212,7 @@ void SciGuiGfx::SetPalette(GuiPalette *sciPal, int16 flag) {
MergePalettes(sciPal, &_sysPalette, flag);
sciPal->timestamp = _sysPalette.timestamp;
if (_picNotValid == 0 && systime != _sysPalette.timestamp)
- SetCLUT(&_sysPalette);
+ setPalette(&_sysPalette);
}
}
@@ -282,7 +282,7 @@ uint16 SciGuiGfx::MatchColor(GuiPalette*pPal, byte r, byte g, byte b) {
return found;
}
-void SciGuiGfx::SetCLUT(GuiPalette*pal) {
+void SciGuiGfx::setPalette(GuiPalette*pal) {
if (pal != &_sysPalette)
memcpy(&_sysPalette,pal,sizeof(GuiPalette));
// just copy palette to system
@@ -300,9 +300,9 @@ void SciGuiGfx::SetCLUT(GuiPalette*pal) {
_system->setPalette(bpal, 0, 256);
}
-void SciGuiGfx::GetCLUT(GuiPalette*pal) {
+void SciGuiGfx::getPalette(GuiPalette*pal) {
if (pal != &_sysPalette)
- memcpy(pal,&_sysPalette,sizeof(GuiPalette));
+ memcpy(pal, &_sysPalette,sizeof(GuiPalette));
}
GuiPort *SciGuiGfx::SetPort(GuiPort *newPort) {
@@ -1285,7 +1285,7 @@ void SciGuiGfx::PaletteAnimate(byte fromColor, byte toColor, int speed) {
// removing schedule
_palSchedules.remove_at(i);
}
- SetCLUT(&_sysPalette);
+ setPalette(&_sysPalette);
return;
}
}
diff --git a/engines/sci/gui/gui_gfx.h b/engines/sci/gui/gui_gfx.h
index 228f62188e..830d349d29 100644
--- a/engines/sci/gui/gui_gfx.h
+++ b/engines/sci/gui/gui_gfx.h
@@ -55,10 +55,10 @@ public:
void CreatePaletteFromData(byte *paletteData, GuiPalette *paletteOut);
bool SetResPalette(int16 resourceNo, int16 flag);
void SetPalette(GuiPalette *sciPal, int16 flag);
- void MergePalettes(GuiPalette* pFrom, GuiPalette* pTo, uint16 flag);
- uint16 MatchColor(GuiPalette* pPal, byte r, byte g, byte b);
- void SetCLUT(GuiPalette*pal);
- void GetCLUT(GuiPalette*pal);
+ void MergePalettes(GuiPalette *pFrom, GuiPalette *pTo, uint16 flag);
+ uint16 MatchColor(GuiPalette *pPal, byte r, byte g, byte b);
+ void setPalette(GuiPalette *pal);
+ void getPalette(GuiPalette *pal);
GuiPort *SetPort(GuiPort *port);
GuiPort *GetPort();