From 2e6df7156e71781986395bbb64a2a7f34e0eec9a Mon Sep 17 00:00:00 2001 From: Lon Hohberger Date: Thu, 16 Oct 2008 18:46:29 -0400 Subject: [PATCH] Better texture scaling for console font --- oglconsole.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/oglconsole.c b/oglconsole.c index ec153a7..bd23d24 100644 --- a/oglconsole.c +++ b/oglconsole.c @@ -70,8 +70,8 @@ OGLCONSOLE_CreateFont(void) } /* Set some parameters i guess */ - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); /* Upload our font */ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, @@ -906,8 +906,10 @@ OGLCONSOLE_SDLEvent(SDL_Event * e) userConsole->lineScrollIndex += userConsole->maxLines; +#if 0 printf("scroll index = %i\n", userConsole->lineScrollIndex); +#endif } // Page down key else if (e->key.keysym.sym == SDLK_PAGEDOWN) { @@ -919,8 +921,10 @@ OGLCONSOLE_SDLEvent(SDL_Event * e) userConsole->lineScrollIndex -= userConsole->maxLines; +#if 0 printf("scroll index = %i\n", userConsole->lineScrollIndex); +#endif } // Arrow key up else if (e->key.keysym.sym == KEY_UP) { -- 2.11.4.GIT