summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-12 23:10:37 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-12 23:10:37 +0200
commit55fc460429899df2d976a11d4521eb2f6ab56367 (patch)
tree7cecc9f16227dc31a46b3d043a7f356eb8d16f63 /src/resources
parent6fb4a7f6e0b793a0d3033e1ffdc31c115c8313eb (diff)
downloadmana-55fc460429899df2d976a11d4521eb2f6ab56367.tar.gz
mana-55fc460429899df2d976a11d4521eb2f6ab56367.tar.bz2
mana-55fc460429899df2d976a11d4521eb2f6ab56367.tar.xz
mana-55fc460429899df2d976a11d4521eb2f6ab56367.zip
Implemented scaling in OpenGL mode
The screen will be scaled up as much as possible, while keeping a minimum 'virtual' resolution of 640x360.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/image.cpp1
1 files changed, 1 insertions, 0 deletions
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);