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