From 8161ab573fd6f8a45b3986278ce7fc1596140526 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 24 Jun 2013 04:17:50 +0200 Subject: Remove texture atlas / AtlasPointer, rename getTextureRaw to getTexture --- src/hud.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hud.cpp') diff --git a/src/hud.cpp b/src/hud.cpp index 9404ed997..f1a4ab523 100644 --- a/src/hud.cpp +++ b/src/hud.cpp @@ -178,7 +178,7 @@ void Hud::drawLuaElements() { v2s32 pos(e->pos.X * screensize.X, e->pos.Y * screensize.Y); switch (e->type) { case HUD_ELEM_IMAGE: { - video::ITexture *texture = tsrc->getTextureRaw(e->text); + video::ITexture *texture = tsrc->getTexture(e->text); if (!texture) continue; @@ -228,7 +228,7 @@ void Hud::drawStatbar(v2s32 pos, u16 corner, u16 drawdir, std::string texture, s const video::SColor color(255, 255, 255, 255); const video::SColor colors[] = {color, color, color, color}; - video::ITexture *stat_texture = tsrc->getTextureRaw(texture); + video::ITexture *stat_texture = tsrc->getTexture(texture); if (!stat_texture) return; @@ -306,7 +306,7 @@ void Hud::drawCrosshair() { return; if (use_crosshair_image) { - video::ITexture *crosshair = tsrc->getTextureRaw("crosshair.png"); + video::ITexture *crosshair = tsrc->getTexture("crosshair.png"); v2u32 size = crosshair->getOriginalSize(); v2s32 lsize = v2s32(displaycenter.X - (size.X / 2), displaycenter.Y - (size.Y / 2)); -- cgit v1.2.3