OGL32CTX: Use our draw2DImage for scalable_font.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15056 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj 2014-01-13 18:18:40 +00:00
parent e23d9c23e9
commit 6f680c1a8e

View File

@ -13,6 +13,7 @@
#include "guiengine/engine.hpp"
#include "io/file_manager.hpp"
#include "utils/translation.hpp"
#include "graphics/glwrap.hpp"
namespace irr
{
@ -650,7 +651,7 @@ void ScalableFont::draw(const core::stringw& text,
for (int y_delta=-2; y_delta<=2; y_delta++)
{
if (x_delta == 0 || y_delta == 0) continue;
driver->draw2DImage(texture,
draw2DImage(texture,
dest + core::position2d<s32>(x_delta, y_delta),
source,
clip,
@ -665,7 +666,7 @@ void ScalableFont::draw(const core::stringw& text,
static video::SColor orange(color.getAlpha(), 255, 100, 0);
static video::SColor yellow(color.getAlpha(), 255, 220, 15);
video::SColor title_colors[] = {yellow, orange, orange, yellow};
driver->draw2DImage(texture,
draw2DImage(texture,
dest,
source,
clip,