Use nice interpolation when rendering background
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9455 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
76f2d55ab0
commit
ef9d15c7f0
@ -343,8 +343,9 @@ void Skin::drawBgImage()
|
|||||||
dest = core::rect<s32>(-clipped_x_space/2, 0, screen_w+clipped_x_space/2, texture_h);
|
dest = core::rect<s32>(-clipped_x_space/2, 0, screen_w+clipped_x_space/2, texture_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
irr_driver->getVideoDriver()->enableMaterial2D();
|
||||||
GUIEngine::getDriver()->draw2DImage(bg_image, dest, source_area, 0 /* no clipping */, 0, false /* alpha */);
|
GUIEngine::getDriver()->draw2DImage(bg_image, dest, source_area, 0 /* no clipping */, 0, false /* alpha */);
|
||||||
|
irr_driver->getVideoDriver()->enableMaterial2D(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Skin::drawBoxFromStretchableTexture(SkinWidgetContainer* w, const core::rect< s32 > &dest,
|
void Skin::drawBoxFromStretchableTexture(SkinWidgetContainer* w, const core::rect< s32 > &dest,
|
||||||
|
Loading…
Reference in New Issue
Block a user