diff options
author | Jinghua Luo <sunmoon1997@gmail.com> | 2007-02-03 21:19:39 +0800 |
---|---|---|
committer | Jinghua Luo <sunmoon1997@gmail.com> | 2007-02-03 21:19:39 +0800 |
commit | e7a66a611a5e1bacfd6d2a08b108ec9e3782b623 (patch) | |
tree | 7e29491feae845a2e191ed33c5be04c6ec0af61f | |
parent | e2373e5f363d0459adcafbe7e72efd82dc93a6ac (diff) |
openl: coding style fixes.
-rw-r--r-- | src/sdl-freetype-opengl.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/sdl-freetype-opengl.c b/src/sdl-freetype-opengl.c index b7b4cb4..ce1bdad 100644 --- a/src/sdl-freetype-opengl.c +++ b/src/sdl-freetype-opengl.c @@ -311,25 +311,25 @@ sdl_freetype_opengl_glyphs_render (sdl_freetype_font_t * font, cached[num_cached++].info = info; } - glPushMatrix(); + glPushMatrix (); - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glEnable (GL_BLEND); + glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable (GL_TEXTURE_2D); glBindTexture (GL_TEXTURE_2D, render->texture); - glTranslatef(x * render->usx, y * render->usy, 0.0f); + glTranslatef (x * render->usx, y * render->usy, 0.0f); - glColor4ub(r, g, b, a); + glColor4ub (r, g, b, a); - glBegin(GL_QUADS); + glBegin (GL_QUADS); for (i = 0; i < num_cached; i++) { user_data = cached[i].info->data; - x1 = FIXEDTOD(glyphs[cached[i].index].x) + cached[i].info->x_offset; - y1 = -FIXEDTOD(glyphs[cached[i].index].y) - cached[i].info->y_offset; + x1 = FIXEDTOD (glyphs[cached[i].index].x) + cached[i].info->x_offset; + y1 = -FIXEDTOD (glyphs[cached[i].index].y) - cached[i].info->y_offset; x2 = x1 + cached[i].info->bitmap.width; y2 = y1 - cached[i].info->bitmap.rows; @@ -338,23 +338,23 @@ sdl_freetype_opengl_glyphs_render (sdl_freetype_font_t * font, x2 *= render->usx; y2 *= render->usy; - glTexCoord2f(user_data->uv[0].x, user_data->uv[1].y); - glVertex2f(x1, y2); + glTexCoord2f (user_data->uv[0].x, user_data->uv[1].y); + glVertex2f (x1, y2); - glTexCoord2f(user_data->uv[0].x, user_data->uv[0].y); - glVertex2f(x1, y1); + glTexCoord2f (user_data->uv[0].x, user_data->uv[0].y); + glVertex2f (x1, y1); - glTexCoord2f(user_data->uv[1].x, user_data->uv[0].y); - glVertex2f(x2, y1); + glTexCoord2f (user_data->uv[1].x, user_data->uv[0].y); + glVertex2f (x2, y1); - glTexCoord2f(user_data->uv[1].x, user_data->uv[1].y); - glVertex2f(x2, y2); + glTexCoord2f (user_data->uv[1].x, user_data->uv[1].y); + glVertex2f (x2, y2); user_data->locked = SDL_FREETYPE_FALSE; } - glEnd(); - glPopMatrix(); + glEnd (); + glPopMatrix (); if (cached != stack_cached) free (cached); |