/*
-Copyright (C) 2004-2010 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
SDL_Surface *panel = graphics.createSurface(320, 240);
SDL_Surface *background = graphics.loadImage("gfx/main/mapBackground.png");
- SDL_SetAlpha(background, SDL_SRCALPHA|SDL_RLEACCEL, 130);
+ SDL_SetAlpha(background, 130);
graphics.blit(background, 0, 0, panel, false);
graphics.drawRect(160, 120, 320, 240, graphics.black, graphics.white, graphics.screen);
graphics.blit(panel, 160, 120, graphics.screen, false);
- if ((config.isControl(CONTROL::MAP)) || (config.isControl(CONTROL::PAUSE)) || (engine.keyState[SDLK_ESCAPE]))
+ if ((config.isControl(CONTROL::MAP)) || (config.isControl(CONTROL::PAUSE)) || (engine.keyState[SDL_SCANCODE_ESCAPE]))
{
break;
}