From 43c29676eb16a9d38355e5282b8e1b00de7297c1 Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Sat, 11 Feb 2006 15:11:30 +0000 Subject: [PATCH] * Improved GL rendering (characters are not blurry anymore) --- src/graphics.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/graphics.c b/src/graphics.c index 83b7db4..2e31182 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -274,6 +274,10 @@ unsigned char gl_key = 0; int gl_special_key = 0; int gl_new_width; int gl_new_height; + +float gl_sw = 9.0f/16.0f; +float gl_sh = 15.0f/16.0f; + #endif static char *_caca_empty_line; @@ -1545,11 +1549,11 @@ void caca_refresh(void) glColor3f(fr, fg, fb); glBegin(GL_QUADS); - glTexCoord2f(0, 1); + glTexCoord2f(0, gl_sh); glVertex2f(x, y); - glTexCoord2f(0.5, 1); + glTexCoord2f(gl_sw, gl_sh); glVertex2f(x + gl_font_width, y); - glTexCoord2f(0.5, 0); + glTexCoord2f(gl_sw, 0); glVertex2f(x + gl_font_width, y + gl_font_height); glTexCoord2f(0, 0); glVertex2f(x, y + gl_font_height);