aboutsummaryrefslogtreecommitdiff
path: root/src/hud.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-06-24 04:17:50 +0200
committerKahrl <kahrl@gmx.net>2013-07-02 03:03:10 +0200
commit8161ab573fd6f8a45b3986278ce7fc1596140526 (patch)
tree0aea4fce4e14e035b386ee773e8abd68bc51bea6 /src/hud.cpp
parentcaf0b67e47fd4c6b2a2bc61c36010e2adf9db388 (diff)
downloadminetest-8161ab573fd6f8a45b3986278ce7fc1596140526.tar.gz
minetest-8161ab573fd6f8a45b3986278ce7fc1596140526.tar.bz2
minetest-8161ab573fd6f8a45b3986278ce7fc1596140526.zip
Remove texture atlas / AtlasPointer, rename getTextureRaw to getTexture
Diffstat (limited to 'src/hud.cpp')
-rw-r--r--src/hud.cpp6
1 files changed, 3 insertions, 3 deletions
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));