From 55fc460429899df2d976a11d4521eb2f6ab56367 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 12 Jul 2012 23:10:37 +0200 Subject: Implemented scaling in OpenGL mode The screen will be scaled up as much as possible, while keeping a minimum 'virtual' resolution of 640x360. --- src/resources/image.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/resources') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index a29d475d..dbed38a2 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -496,6 +496,7 @@ Image *Image::_GLload(SDL_Surface *tmpImage) tmpImage->pixels); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); + glTexParameteri(mTextureType, GL_TEXTURE_MAG_FILTER, GL_NEAREST); if (SDL_MUSTLOCK(tmpImage)) SDL_UnlockSurface(tmpImage); -- cgit v1.2.3-70-g09d2