Swapped functions to match the other renderer files
authorSam Lantinga <slouken@libsdl.org>
Tue, 30 Dec 2008 04:22:24 +0000
changeset 29257e21f7662208
parent 2924 098dc905ef51
child 2926 27f2b5e7e899
Swapped functions to match the other renderer files
src/video/SDL_renderer_gl.c
     1.1 --- a/src/video/SDL_renderer_gl.c	Tue Dec 30 03:54:34 2008 +0000
     1.2 +++ b/src/video/SDL_renderer_gl.c	Tue Dec 30 04:22:24 2008 +0000
     1.3 @@ -1083,22 +1083,6 @@
     1.4  }
     1.5  
     1.6  static int
     1.7 -GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)
     1.8 -{
     1.9 -    GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
    1.10 -    SDL_Window *window = SDL_GetWindowFromID(renderer->window);
    1.11 -
    1.12 -    data->glColor4f((GLfloat) renderer->r * inv255f,
    1.13 -                    (GLfloat) renderer->g * inv255f,
    1.14 -                    (GLfloat) renderer->b * inv255f,
    1.15 -                    (GLfloat) renderer->a * inv255f);
    1.16 -    SetBlendMode(data, renderer->blendMode);
    1.17 -    data->glRecti(rect->x, rect->y, rect->x + rect->w, rect->y + rect->h);
    1.18 -
    1.19 -    return 0;
    1.20 -}
    1.21 -
    1.22 -static int
    1.23  GL_RenderPoint(SDL_Renderer * renderer, int x, int y)
    1.24  {
    1.25      GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
    1.26 @@ -1138,6 +1122,22 @@
    1.27  }
    1.28  
    1.29  static int
    1.30 +GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)
    1.31 +{
    1.32 +    GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
    1.33 +    SDL_Window *window = SDL_GetWindowFromID(renderer->window);
    1.34 +
    1.35 +    data->glColor4f((GLfloat) renderer->r * inv255f,
    1.36 +                    (GLfloat) renderer->g * inv255f,
    1.37 +                    (GLfloat) renderer->b * inv255f,
    1.38 +                    (GLfloat) renderer->a * inv255f);
    1.39 +    SetBlendMode(data, renderer->blendMode);
    1.40 +    data->glRecti(rect->x, rect->y, rect->x + rect->w, rect->y + rect->h);
    1.41 +
    1.42 +    return 0;
    1.43 +}
    1.44 +
    1.45 +static int
    1.46  GL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
    1.47                const SDL_Rect * srcrect, const SDL_Rect * dstrect)
    1.48  {