From 21361a5df873316c55c3e4e494249377149b2334 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 28 Sep 2008 19:46:18 +0000 Subject: Add whitespace fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilefont.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/tilefont.cc') diff --git a/crawl-ref/source/tilefont.cc b/crawl-ref/source/tilefont.cc index 720ac7b310..77de04e2a1 100644 --- a/crawl-ref/source/tilefont.cc +++ b/crawl-ref/source/tilefont.cc @@ -68,7 +68,7 @@ bool FTFont::load_font(const char *font_name, unsigned int font_size) fprintf(stderr, "Could not find font '%s'\n", font_name); return false; } - + error = FT_New_Face(library, font_path.c_str(), 0, &face); if (error == FT_Err_Unknown_File_Format) { @@ -161,7 +161,7 @@ bool FTFont::load_font(const char *font_name, unsigned int font_size) pixels[idx + 1] = 255; pixels[idx + 2] = 255; pixels[idx + 3] = 255; - } + } } for (unsigned int c = 1; c < 256; c++) @@ -203,7 +203,7 @@ bool FTFont::load_font(const char *font_name, unsigned int font_size) pixels[idx + 1] = 255; pixels[idx + 2] = 255; pixels[idx + 3] = alpha; - } + } } bool success = m_tex.load_texture(pixels, width, height, @@ -244,7 +244,7 @@ void FTFont::render_textblock(unsigned int x_pos, unsigned int y_pos, verts.reserve(4 * width * height); float texcoord_dy = (float)m_max_advance.y / (float)m_tex.height(); - + for (unsigned int y = 0; y < height; y++) { for (unsigned int x = 0; x < width; x++) @@ -403,7 +403,7 @@ static void _draw_box(int x_pos, int y_pos, float width, float height, glVertexPointer(2, GL_FLOAT, sizeof(box_vert), &verts[0].x); glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(box_vert), &verts[0].r); - glDrawArrays(GL_QUADS, 0, sizeof(verts) / sizeof(box_vert)); + glDrawArrays(GL_QUADS, 0, sizeof(verts) / sizeof(box_vert)); } @@ -412,7 +412,7 @@ unsigned int FTFont::string_width(const char *text) unsigned int base_width = std::max(-m_min_offset, 0); unsigned int max_width = 0; - unsigned int width = 0; + unsigned int width = 0; unsigned int adjust = 0; for (const char *itr = text; *itr; itr++) { -- cgit v1.2.3-54-g00ecf