Explorar el Código

Changed function to return -1 through SDL_Error() instead of plain -1.

Philipp Wiesemann hace 12 años
padre
commit
4e270de15d
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/render/SDL_render.c

+ 1 - 2
src/render/SDL_render.c

@@ -348,8 +348,7 @@ SDL_GetRendererOutputSize(SDL_Renderer * renderer, int *w, int *h)
         return 0;
     } else {
         /* This should never happen */
-        SDL_SetError("Renderer doesn't support querying output size");
-        return -1;
+        return SDL_SetError("Renderer doesn't support querying output size");
     }
 }