diff src/video/SDL_renderer_gl.c @ 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 dc4523c7c22d
children 2133d2d300fd
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)
 {