From cdead6d57b9d90d8f80cba023e5e6056765b273d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 5 Jul 2005 15:15:35 +0000 Subject: - Stripped down unused SURFACE parameter in palette-related functions - Fixed scenes glitch when loading saved game. This is done by closing load window right after game is loaded which differs from original but seems more logical to me - Fixed wrong palette when Dragon maze was loaded from a savegame. We just didn't process Palette resource for it. svn-id: r18494 --- saga/gfx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'saga/gfx.cpp') diff --git a/saga/gfx.cpp b/saga/gfx.cpp index 8189f6f070..2d15259d53 100644 --- a/saga/gfx.cpp +++ b/saga/gfx.cpp @@ -455,7 +455,7 @@ SURFACE *Gfx::getBackBuffer() { return &_back_buf; } -int Gfx::setPalette(SURFACE *surface, PALENTRY *pal) { +int Gfx::setPalette(PALENTRY *pal) { int i; byte *ppal; @@ -484,7 +484,7 @@ int Gfx::getCurrentPal(PALENTRY *src_pal) { return SUCCESS; } -int Gfx::palToBlack(SURFACE *surface, PALENTRY *src_pal, double percent) { +int Gfx::palToBlack(PALENTRY *src_pal, double percent) { int i; //int fade_max = 255; int new_entry; @@ -534,7 +534,7 @@ int Gfx::palToBlack(SURFACE *surface, PALENTRY *src_pal, double percent) { return SUCCESS; } -int Gfx::blackToPal(SURFACE *surface, PALENTRY *src_pal, double percent) { +int Gfx::blackToPal(PALENTRY *src_pal, double percent) { int new_entry; double fpercent; int color_delta; -- cgit v1.2.3