diff src/video/gem/SDL_gemvideo.c @ 1104:bf145eaf76ef

Tell user how many bytes are needed
author Patrice Mandin <patmandin@gmail.com>
date Wed, 27 Jul 2005 19:46:59 +0000
parents 18e5babe266e
children a8068adf156b
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.c	Wed Jul 27 19:18:10 2005 +0000
+++ b/src/video/gem/SDL_gemvideo.c	Wed Jul 27 19:46:59 2005 +0000
@@ -674,7 +674,7 @@
 	if (use_shadow1) {
 		GEM_buffer1 = Atari_SysMalloc(screensize, MX_PREFTTRAM);
 		if (GEM_buffer1==NULL) {
-			SDL_SetError("Unable to allocate shadow buffer");
+			SDL_SetError("Can not allocate %d KB for frame buffer", screensize>>10);
 			return NULL;
 		}
 		memset(GEM_buffer1, 0, screensize);
@@ -686,7 +686,7 @@
 	if (use_shadow2) {
 		GEM_buffer2 = Atari_SysMalloc(screensize, MX_PREFTTRAM);
 		if (GEM_buffer2==NULL) {
-			SDL_SetError("Unable to allocate shadow buffer");
+			SDL_SetError("Can not allocate %d KB for shadow buffer", screensize>>10);
 			return NULL;
 		}
 		memset(GEM_buffer2, 0, screensize);