Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1103:18e5babe266e | 1104:bf145eaf76ef |
---|---|
672 } | 672 } |
673 | 673 |
674 if (use_shadow1) { | 674 if (use_shadow1) { |
675 GEM_buffer1 = Atari_SysMalloc(screensize, MX_PREFTTRAM); | 675 GEM_buffer1 = Atari_SysMalloc(screensize, MX_PREFTTRAM); |
676 if (GEM_buffer1==NULL) { | 676 if (GEM_buffer1==NULL) { |
677 SDL_SetError("Unable to allocate shadow buffer"); | 677 SDL_SetError("Can not allocate %d KB for frame buffer", screensize>>10); |
678 return NULL; | 678 return NULL; |
679 } | 679 } |
680 memset(GEM_buffer1, 0, screensize); | 680 memset(GEM_buffer1, 0, screensize); |
681 #ifdef DEBUG_VIDEO_GEM | 681 #ifdef DEBUG_VIDEO_GEM |
682 printf("sdl:video:gem: setvideomode(): allocated buffer 1\n"); | 682 printf("sdl:video:gem: setvideomode(): allocated buffer 1\n"); |
684 } | 684 } |
685 | 685 |
686 if (use_shadow2) { | 686 if (use_shadow2) { |
687 GEM_buffer2 = Atari_SysMalloc(screensize, MX_PREFTTRAM); | 687 GEM_buffer2 = Atari_SysMalloc(screensize, MX_PREFTTRAM); |
688 if (GEM_buffer2==NULL) { | 688 if (GEM_buffer2==NULL) { |
689 SDL_SetError("Unable to allocate shadow buffer"); | 689 SDL_SetError("Can not allocate %d KB for shadow buffer", screensize>>10); |
690 return NULL; | 690 return NULL; |
691 } | 691 } |
692 memset(GEM_buffer2, 0, screensize); | 692 memset(GEM_buffer2, 0, screensize); |
693 #ifdef DEBUG_VIDEO_GEM | 693 #ifdef DEBUG_VIDEO_GEM |
694 printf("sdl:video:gem: setvideomode(): allocated buffer 2\n"); | 694 printf("sdl:video:gem: setvideomode(): allocated buffer 2\n"); |