src/video/SDL_renderer_gles.c
changeset 3139 7f684f249ec9
parent 3122 6c98826d88b0
child 3161 494559cc723b
     1.1 --- a/src/video/SDL_renderer_gles.c	Fri May 15 15:47:37 2009 +0000
     1.2 +++ b/src/video/SDL_renderer_gles.c	Sat May 23 22:41:08 2009 +0000
     1.3 @@ -34,9 +34,10 @@
     1.4  
     1.5  /* Empty function stub to get OpenGL ES 1.0 support without  */
     1.6  /* OpenGL ES extension GL_OES_draw_texture_supported         */
     1.7 -GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
     1.8 +GL_API void GL_APIENTRY
     1.9 +glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
    1.10  {
    1.11 -   return;
    1.12 +    return;
    1.13  }
    1.14  
    1.15  #endif /* __QNXNTO__ */
    1.16 @@ -105,8 +106,7 @@
    1.17       {
    1.18        /* OpenGL ES 1.x supported formats list */
    1.19        SDL_PIXELFORMAT_BGR24,
    1.20 -      SDL_PIXELFORMAT_ABGR8888
    1.21 -     },
    1.22 +      SDL_PIXELFORMAT_ABGR8888},
    1.23       0,
    1.24       0}
    1.25  };
    1.26 @@ -351,7 +351,7 @@
    1.27  }
    1.28  
    1.29  static int
    1.30 -GLES_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture)
    1.31 +GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
    1.32  {
    1.33      GLES_RenderData *renderdata = (GLES_RenderData *) renderer->driverdata;
    1.34      SDL_Window *window = SDL_GetWindowFromID(renderer->window);
    1.35 @@ -363,15 +363,15 @@
    1.36  
    1.37      switch (texture->format) {
    1.38      case SDL_PIXELFORMAT_BGR24:
    1.39 -         internalFormat = GL_RGB;
    1.40 -         format = GL_RGB;
    1.41 -         type = GL_UNSIGNED_BYTE;
    1.42 -         break;
    1.43 +        internalFormat = GL_RGB;
    1.44 +        format = GL_RGB;
    1.45 +        type = GL_UNSIGNED_BYTE;
    1.46 +        break;
    1.47      case SDL_PIXELFORMAT_ABGR8888:
    1.48 -         internalFormat = GL_RGBA;
    1.49 -         format = GL_RGBA;
    1.50 -         type = GL_UNSIGNED_BYTE;
    1.51 -         break;
    1.52 +        internalFormat = GL_RGBA;
    1.53 +        format = GL_RGBA;
    1.54 +        type = GL_UNSIGNED_BYTE;
    1.55 +        break;
    1.56          /*
    1.57             These formats would be supported if SDL had the necessary pixel formats
    1.58             case SDL_PIXELFORMAT_BGR565:
    1.59 @@ -389,7 +389,7 @@
    1.60             format = GL_RGBA;
    1.61             type = GL_UNSIGNED_SHORT_4_4_4_4;
    1.62             break;
    1.63 -        */
    1.64 +         */
    1.65      default:
    1.66          SDL_SetError("Unsupported texture format");
    1.67          return -1;
    1.68 @@ -533,8 +533,8 @@
    1.69  }
    1.70  
    1.71  static int
    1.72 -GLES_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture,
    1.73 -                   const SDL_Rect *rect, const void *pixels, int pitch)
    1.74 +GLES_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
    1.75 +                   const SDL_Rect * rect, const void *pixels, int pitch)
    1.76  {
    1.77      GLES_RenderData *renderdata = (GLES_RenderData *) renderer->driverdata;
    1.78      GLES_TextureData *data = (GLES_TextureData *) texture->driverdata;
    1.79 @@ -858,7 +858,7 @@
    1.80  }
    1.81  
    1.82  static void
    1.83 -GLES_RenderPresent(SDL_Renderer *renderer)
    1.84 +GLES_RenderPresent(SDL_Renderer * renderer)
    1.85  {
    1.86      SDL_GL_SwapWindow(renderer->window);
    1.87  }