changeset 2925:7e21f7662208

Swapped functions to match the other renderer files
author Sam Lantinga <slouken@libsdl.org>
date Tue, 30 Dec 2008 04:22:24 +0000
parents 098dc905ef51
children 27f2b5e7e899
files src/video/SDL_renderer_gl.c
diffstat 1 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c	Tue Dec 30 03:54:34 2008 +0000
+++ b/src/video/SDL_renderer_gl.c	Tue Dec 30 04:22:24 2008 +0000
@@ -1083,22 +1083,6 @@
 }
 
 static int
-GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)
-{
-    GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
-    SDL_Window *window = SDL_GetWindowFromID(renderer->window);
-
-    data->glColor4f((GLfloat) renderer->r * inv255f,
-                    (GLfloat) renderer->g * inv255f,
-                    (GLfloat) renderer->b * inv255f,
-                    (GLfloat) renderer->a * inv255f);
-    SetBlendMode(data, renderer->blendMode);
-    data->glRecti(rect->x, rect->y, rect->x + rect->w, rect->y + rect->h);
-
-    return 0;
-}
-
-static int
 GL_RenderPoint(SDL_Renderer * renderer, int x, int y)
 {
     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
@@ -1138,6 +1122,22 @@
 }
 
 static int
+GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)
+{
+    GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
+    SDL_Window *window = SDL_GetWindowFromID(renderer->window);
+
+    data->glColor4f((GLfloat) renderer->r * inv255f,
+                    (GLfloat) renderer->g * inv255f,
+                    (GLfloat) renderer->b * inv255f,
+                    (GLfloat) renderer->a * inv255f);
+    SetBlendMode(data, renderer->blendMode);
+    data->glRecti(rect->x, rect->y, rect->x + rect->w, rect->y + rect->h);
+
+    return 0;
+}
+
+static int
 GL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
               const SDL_Rect * srcrect, const SDL_Rect * dstrect)
 {