Преглед на файлове

Using NEAREST filter instead of LINEAR on theme textures to fix blurry borders.

Adam Blake преди 12 години
родител
ревизия
a8ffbed283
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      gameplay/src/Theme.cpp

+ 1 - 0
gameplay/src/Theme.cpp

@@ -91,6 +91,7 @@ Theme* Theme::create(const char* url)
     const char* textureFile = themeProperties->getString("texture");
     const char* textureFile = themeProperties->getString("texture");
     theme->_texture = Texture::create(textureFile, false);
     theme->_texture = Texture::create(textureFile, false);
     GP_ASSERT(theme->_texture);
     GP_ASSERT(theme->_texture);
+    theme->_texture->setFilterMode(Texture::NEAREST, Texture::NEAREST);
     theme->_spriteBatch = SpriteBatch::create(theme->_texture);
     theme->_spriteBatch = SpriteBatch::create(theme->_texture);
     GP_ASSERT(theme->_spriteBatch);
     GP_ASSERT(theme->_spriteBatch);