SVN/newgui: renamed getScreenPalette to getSysPalette (code doesnt get the screen palette at all, but actually the current sysPalette which does not need to be active at all times
svn-id: r44669
This commit is contained in:
parent
2a06f34181
commit
ec43c30503
2 changed files with 2 additions and 2 deletions
|
@ -300,7 +300,7 @@ void SciGuiGfx::setScreenPalette(GuiPalette*pal) {
|
||||||
_system->setPalette(bpal, 0, 256);
|
_system->setPalette(bpal, 0, 256);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SciGuiGfx::getScreenPalette(GuiPalette*pal) {
|
void SciGuiGfx::getSysPalette(GuiPalette*pal) {
|
||||||
if (pal != &_sysPalette)
|
if (pal != &_sysPalette)
|
||||||
memcpy(pal, &_sysPalette,sizeof(GuiPalette));
|
memcpy(pal, &_sysPalette,sizeof(GuiPalette));
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ public:
|
||||||
void MergePalettes(GuiPalette *pFrom, GuiPalette *pTo, uint16 flag);
|
void MergePalettes(GuiPalette *pFrom, GuiPalette *pTo, uint16 flag);
|
||||||
uint16 MatchColor(GuiPalette *pPal, byte r, byte g, byte b);
|
uint16 MatchColor(GuiPalette *pPal, byte r, byte g, byte b);
|
||||||
void setScreenPalette(GuiPalette *pal);
|
void setScreenPalette(GuiPalette *pal);
|
||||||
void getScreenPalette(GuiPalette *pal);
|
void getSysPalette(GuiPalette *pal);
|
||||||
|
|
||||||
GuiPort *SetPort(GuiPort *port);
|
GuiPort *SetPort(GuiPort *port);
|
||||||
GuiPort *GetPort();
|
GuiPort *GetPort();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue