# HG changeset patch # User Patrice Mandin # Date 1091734484 0 # Node ID bbefeed8134ded1a8688e444fb3c51a0e8b0f0f1 # Parent 4b1dd7691f05c962c97e1dea9a08c56a50bcdd88 Use SDL_SetError instead of fprintf diff -r 4b1dd7691f05 -r bbefeed8134d src/video/gem/SDL_gemvideo.c --- a/src/video/gem/SDL_gemvideo.c Tue Aug 03 15:40:18 2004 +0000 +++ b/src/video/gem/SDL_gemvideo.c Thu Aug 05 19:34:44 2004 +0000 @@ -605,7 +605,7 @@ if (use_shadow1) { GEM_buffer1 = Atari_SysMalloc(screensize, MX_PREFTTRAM); if (GEM_buffer1==NULL) { - fprintf(stderr,"Unable to allocate shadow buffer\n"); + SDL_SetError("Unable to allocate shadow buffer"); return NULL; } memset(GEM_buffer1, 0, screensize); @@ -617,7 +617,7 @@ if (use_shadow2) { GEM_buffer2 = Atari_SysMalloc(screensize, MX_PREFTTRAM); if (GEM_buffer2==NULL) { - fprintf(stderr,"Unable to allocate shadow buffer\n"); + SDL_SetError("Unable to allocate shadow buffer"); return NULL; } memset(GEM_buffer2, 0, screensize); @@ -671,7 +671,7 @@ if (!wind_calc(0, GEM_win_type, posx, posy, width, height, &x2, &y2, &w2, &h2)) { GEM_FreeBuffers(this); - fprintf(stderr,"Can not calculate window attributes\n"); + SDL_SetError("Can not calculate window attributes\n"); return NULL; } @@ -679,7 +679,7 @@ GEM_handle=wind_create(GEM_win_type, x2, y2, w2, h2); if (GEM_handle<0) { GEM_FreeBuffers(this); - fprintf(stderr,"Can not create window\n"); + SDL_SetError("Can not create window\n"); return NULL; }