indent
authorSam Lantinga <slouken@libsdl.org>
Fri, 02 Jan 2009 16:03:37 +0000
changeset 29640faae272a372
parent 2963 ee331407574f
child 2965 5066298aa82a
indent
src/video/SDL_glesfuncs.h
src/video/SDL_renderer_gles.c
     1.1 --- a/src/video/SDL_glesfuncs.h	Fri Jan 02 15:47:49 2009 +0000
     1.2 +++ b/src/video/SDL_glesfuncs.h	Fri Jan 02 16:03:37 2009 +0000
     1.3 @@ -87,8 +87,7 @@
     1.4                  (GLboolean red, GLboolean green, GLboolean blue,
     1.5                   GLboolean alpha))
     1.6  SDL_PROC(void, glColorPointer,
     1.7 -                (GLint size, GLenum type, GLsizei stride,
     1.8 -                 const GLvoid * pointer))
     1.9 +         (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
    1.10  SDL_PROC_UNUSED(void, glCompressedTexImage2D,
    1.11                  (GLenum target, GLint level, GLenum internalformat,
    1.12                   GLsizei width, GLsizei height, GLint border,
     2.1 --- a/src/video/SDL_renderer_gles.c	Fri Jan 02 15:47:49 2009 +0000
     2.2 +++ b/src/video/SDL_renderer_gles.c	Fri Jan 02 16:03:37 2009 +0000
     2.3 @@ -632,15 +632,15 @@
     2.4                      (GLfloat) renderer->b * inv255f,
     2.5                      (GLfloat) renderer->a * inv255f);
     2.6  
     2.7 -	GLshort vertices[2];
     2.8 -	vertices[0] = x;
     2.9 -	vertices[1] = y;
    2.10 -	
    2.11 -	data->glVertexPointer(2, GL_SHORT, 0, vertices);
    2.12 -	data->glEnableClientState(GL_VERTEX_ARRAY);
    2.13 -	data->glDrawArrays(GL_POINTS, 0, 1);
    2.14 -	data->glDisableClientState(GL_VERTEX_ARRAY);
    2.15 -	
    2.16 +    GLshort vertices[2];
    2.17 +    vertices[0] = x;
    2.18 +    vertices[1] = y;
    2.19 +
    2.20 +    data->glVertexPointer(2, GL_SHORT, 0, vertices);
    2.21 +    data->glEnableClientState(GL_VERTEX_ARRAY);
    2.22 +    data->glDrawArrays(GL_POINTS, 0, 1);
    2.23 +    data->glDisableClientState(GL_VERTEX_ARRAY);
    2.24 +
    2.25      return 0;
    2.26  }
    2.27  
    2.28 @@ -656,16 +656,16 @@
    2.29                      (GLfloat) renderer->b * inv255f,
    2.30                      (GLfloat) renderer->a * inv255f);
    2.31  
    2.32 -	GLshort vertices[4];
    2.33 -	vertices[0] = x1;
    2.34 -	vertices[1] = y1;
    2.35 -	vertices[2] = x2;
    2.36 -	vertices[3] = y2;
    2.37 +    GLshort vertices[4];
    2.38 +    vertices[0] = x1;
    2.39 +    vertices[1] = y1;
    2.40 +    vertices[2] = x2;
    2.41 +    vertices[3] = y2;
    2.42  
    2.43 -	data->glVertexPointer(2, GL_SHORT, 0, vertices);
    2.44 -	data->glEnableClientState(GL_VERTEX_ARRAY);
    2.45 -	data->glDrawArrays(GL_LINES, 0, 2);
    2.46 -	data->glDisableClientState(GL_VERTEX_ARRAY);
    2.47 +    data->glVertexPointer(2, GL_SHORT, 0, vertices);
    2.48 +    data->glEnableClientState(GL_VERTEX_ARRAY);
    2.49 +    data->glDrawArrays(GL_LINES, 0, 2);
    2.50 +    data->glDisableClientState(GL_VERTEX_ARRAY);
    2.51  
    2.52      return 0;
    2.53  }
    2.54 @@ -682,25 +682,25 @@
    2.55                      (GLfloat) renderer->b * inv255f,
    2.56                      (GLfloat) renderer->a * inv255f);
    2.57  
    2.58 -	GLshort minx = rect->x;
    2.59 -	GLshort maxx = rect->x + rect->w;
    2.60 -	GLshort miny = rect->y;
    2.61 -	GLshort maxy = rect->y + rect->h;
    2.62 -	
    2.63 -	GLshort vertices[8];
    2.64 -	vertices[0] = minx;
    2.65 -	vertices[1] = miny;
    2.66 -	vertices[2] = maxx;
    2.67 -	vertices[3] = miny;
    2.68 -	vertices[4] = minx;
    2.69 -	vertices[5] = maxy;
    2.70 -	vertices[6] = maxx;
    2.71 -	vertices[7] = maxy;
    2.72 -	
    2.73 -	data->glVertexPointer(2, GL_SHORT, 0, vertices);
    2.74 -	data->glEnableClientState(GL_VERTEX_ARRAY);
    2.75 -	data->glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
    2.76 -	data->glDisableClientState(GL_VERTEX_ARRAY);
    2.77 +    GLshort minx = rect->x;
    2.78 +    GLshort maxx = rect->x + rect->w;
    2.79 +    GLshort miny = rect->y;
    2.80 +    GLshort maxy = rect->y + rect->h;
    2.81 +
    2.82 +    GLshort vertices[8];
    2.83 +    vertices[0] = minx;
    2.84 +    vertices[1] = miny;
    2.85 +    vertices[2] = maxx;
    2.86 +    vertices[3] = miny;
    2.87 +    vertices[4] = minx;
    2.88 +    vertices[5] = maxy;
    2.89 +    vertices[6] = maxx;
    2.90 +    vertices[7] = maxy;
    2.91 +
    2.92 +    data->glVertexPointer(2, GL_SHORT, 0, vertices);
    2.93 +    data->glEnableClientState(GL_VERTEX_ARRAY);
    2.94 +    data->glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
    2.95 +    data->glDisableClientState(GL_VERTEX_ARRAY);
    2.96  
    2.97      return 0;
    2.98  }