Skip to content

Commit

Permalink
fixing minimap pink in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Feb 18, 2010
1 parent 48f2477 commit 6ad4513
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/MapLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1948,13 +1948,14 @@ struct ML_Gusanos : public MapLoad {
SmartPointer<SDL_Surface> getMinimap() {
if(minimap.get()) return minimap;

SmartPointer<SDL_Surface> image = LoadGameImage(filename + "/level.png");
// We use the allegro loader function because that assures that we don't have alpha - because alpha makes problem for the blitting functions.
SmartPointer<SDL_Surface> image = load_bitmap__allegroformat(filename + "/level.png");
if(!image.get()) {
setMinimapErrorGraphic(minimap);
return minimap;
}
SetColorKey(image.get());
SmartPointer<SDL_Surface> paralax = LoadGameImage(filename + "/paralax.png");
SmartPointer<SDL_Surface> paralax = load_bitmap__allegroformat(filename + "/paralax.png");

SmartPointer<SDL_Surface>& bmpMiniMap = minimap;
const int x = 0, y = 0, w = image->w, h = image->h;
Expand Down

0 comments on commit 6ad4513

Please sign in to comment.