Maelstrom: Make sure the style is reflected in the text hash key

From ae03ae098e62135a1613dc03c72fb3e4c7dd1096 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 22 Oct 2011 02:50:18 -0400
Subject: [PATCH] Make sure the style is reflected in the text hash key

---
 maclib/Mac_FontServ.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/maclib/Mac_FontServ.cpp b/maclib/Mac_FontServ.cpp
index 4c7fc846..e50320ff 100644
--- a/maclib/Mac_FontServ.cpp
+++ b/maclib/Mac_FontServ.cpp
@@ -295,9 +295,9 @@ FontServ:: TextImage(const char *text, MFont *font, Uint8 style, SDL_Color fg)
 	int bit;
 
 	/* First see if we can find it in our cache */
-	keysize = strlen(font->name)+1+8+1+strlen(text)+1;
+	keysize = strlen(font->name)+1+2+1+1+1+strlen(text)+1;
 	key = SDL_stack_alloc(char, keysize);
-	sprintf(key, "%s:%d:%s", font->name, font->ptsize, text);
+	sprintf(key, "%s:%d:%d:%s", font->name, font->ptsize, '0'+style, text);
 	if (hash_find(strings, key, (const void**)&image)) {
 		SDL_SetTextureColorMod(image, fg.r, fg.g, fg.b);
 		return image;