[*] Increased in-game notify message size fron 64 to 128

[-] Fixed bug with transparent 32bpp images in software mode
This commit is contained in:
cybermind 2013-04-15 19:39:36 +06:00
parent ef2755a4e3
commit 87d7fa5a87
2 changed files with 2 additions and 2 deletions

View file

@ -562,7 +562,7 @@ void DrawResources()
#define MESSAGES_MAX 10 /// How many can be displayed
static char MessagesEvent[MESSAGES_MAX][64]; /// Array of event messages
static char MessagesEvent[MESSAGES_MAX][128]; /// Array of event messages
static int MessagesEventX[MESSAGES_MAX]; /// X coordinate of event
static int MessagesEventY[MESSAGES_MAX]; /// Y coordinate of event
static int MessagesEventCount; /// Number of event messages

View file

@ -235,7 +235,7 @@ int LoadGraphicPNG(CGraphic *g)
/* FIXME: Should these be truncated or shifted down? */
ckey = SDL_MapRGB(surface->format, (Uint8)transv->red, (Uint8)transv->green, (Uint8)transv->blue);
}
SDL_SetColorKey(surface, SDL_SRCCOLORKEY | SDL_RLEACCEL, ckey);
SDL_SetColorKey(surface, SDL_SRCCOLORKEY, ckey);
}
/* Create the array of pointers to image data */