AGOS: Fix warnings
This commit is contained in:
parent
d0bb81f566
commit
0e1affcc97
5 changed files with 8 additions and 9 deletions
|
@ -776,7 +776,7 @@ void AGOSEngine::setMoveRect(uint16 x, uint16 y, uint16 width, uint16 height) {
|
|||
void AGOSEngine::displayScreen() {
|
||||
if (_fastFadeInFlag == 0 && _paletteFlag == 1) {
|
||||
_paletteFlag = 0;
|
||||
if (memcmp(_displayPalette, _currentPalette, sizeof(_currentPalette))) {
|
||||
if (memcmp(_displayPalette, _currentPalette, sizeof(_currentPalette)) != 0) {
|
||||
memcpy(_currentPalette, _displayPalette, sizeof(_displayPalette));
|
||||
_system->getPaletteManager()->setPalette(_displayPalette, 0, 256);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue