src/render/software/SDL_blendline.c
changeset 7037 3fedf1f25b94
parent 6885 700f1b25f77f
child 8093 b43765095a6f
     1.1 --- a/src/render/software/SDL_blendline.c	Fri Mar 29 21:29:57 2013 -0400
     1.2 +++ b/src/render/software/SDL_blendline.c	Sun Mar 31 12:48:50 2013 -0400
     1.3 @@ -711,14 +711,12 @@
     1.4      BlendLineFunc func;
     1.5  
     1.6      if (!dst) {
     1.7 -        SDL_SetError("SDL_BlendLine(): Passed NULL destination surface");
     1.8 -        return -1;
     1.9 +        return SDL_SetError("SDL_BlendLine(): Passed NULL destination surface");
    1.10      }
    1.11  
    1.12      func = SDL_CalculateBlendLineFunc(dst->format);
    1.13      if (!func) {
    1.14 -        SDL_SetError("SDL_BlendLine(): Unsupported surface format");
    1.15 -        return -1;
    1.16 +        return SDL_SetError("SDL_BlendLine(): Unsupported surface format");
    1.17      }
    1.18  
    1.19      /* Perform clipping */
    1.20 @@ -742,14 +740,12 @@
    1.21      BlendLineFunc func;
    1.22  
    1.23      if (!dst) {
    1.24 -        SDL_SetError("SDL_BlendLines(): Passed NULL destination surface");
    1.25 -        return -1;
    1.26 +        return SDL_SetError("SDL_BlendLines(): Passed NULL destination surface");
    1.27      }
    1.28  
    1.29      func = SDL_CalculateBlendLineFunc(dst->format);
    1.30      if (!func) {
    1.31 -        SDL_SetError("SDL_BlendLines(): Unsupported surface format");
    1.32 -        return -1;
    1.33 +        return SDL_SetError("SDL_BlendLines(): Unsupported surface format");
    1.34      }
    1.35  
    1.36      for (i = 1; i < count; ++i) {