Explorar o código

Changed Gui.bitmap to use bilinear filtering

Peter Robinson %!s(int64=10) %!d(string=hai) anos
pai
achega
32c015c833

+ 1 - 1
engine/source/gui/containers/guiScrollCtrl.cc

@@ -136,7 +136,7 @@ bool GuiScrollCtrl::onWake()
       return false;
 
    mTextureHandle = mProfile->mTextureHandle;
-   mTextureHandle.setFilter(GL_NEAREST);;
+   mTextureHandle.setFilter(GL_NEAREST);
 
    bool result;
    result = mProfile->constructBitmapArray() >= BmpStates * BmpCount;

+ 2 - 1
engine/source/gui/guiBitmapCtrl.cc

@@ -131,7 +131,8 @@ void GuiBitmapCtrl::setBitmap(const char *name, bool resize)
 {
    mBitmapName = StringTable->insert(name);
    if (*mBitmapName) {
-      mTextureHandle = TextureHandle(mBitmapName, TextureHandle::BitmapTexture, true);
+	   mTextureHandle = TextureHandle(mBitmapName, TextureHandle::BitmapTexture, true);
+	   mTextureHandle.setFilter(GL_LINEAR);
 
       // Resize the control to fit the bitmap
       if (resize) {