summaryrefslogtreecommitdiffstats
path: root/src/ui/slider.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-07-24 22:17:49 +0200
committerkrzys-h <krzys_h@interia.pl>2014-07-24 22:17:49 +0200
commit7131abd385bb370328e7c59e8a6b70d160b2effc (patch)
treeb2f4313fa45eefeda6cb1ee38bf48950584c5c71 /src/ui/slider.cpp
parent02ba358a892b9977250ea345c42f8226f89ba250 (diff)
downloadcolobot-7131abd385bb370328e7c59e8a6b70d160b2effc.tar.gz
colobot-7131abd385bb370328e7c59e8a6b70d160b2effc.tar.bz2
colobot-7131abd385bb370328e7c59e8a6b70d160b2effc.zip
Fixed SatCom image loading
Now LoadTexture/SetTexture functions require full path with "textures/" directory
Diffstat (limited to 'src/ui/slider.cpp')
-rw-r--r--src/ui/slider.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/slider.cpp b/src/ui/slider.cpp
index 9078cfe..7e41083 100644
--- a/src/ui/slider.cpp
+++ b/src/ui/slider.cpp
@@ -498,7 +498,7 @@ void CSlider::DrawVertex(Math::Point pos, Math::Point dim, int icon)
if ( icon == 0 )
{
- m_engine->SetTexture("interface/button2.png");
+ m_engine->SetTexture("textures/interface/button2.png");
m_engine->SetState(Gfx::ENG_RSTATE_NORMAL);
uv1.x = 0.0f/256.0f; // yellow rectangle
uv1.y = 32.0f/256.0f;
@@ -510,7 +510,7 @@ void CSlider::DrawVertex(Math::Point pos, Math::Point dim, int icon)
}
else if ( icon == 1 )
{
- m_engine->SetTexture("interface/button2.png");
+ m_engine->SetTexture("textures/interface/button2.png");
m_engine->SetState(Gfx::ENG_RSTATE_NORMAL);
uv1.x = 128.0f/256.0f; // gray rectangle
uv1.y = 32.0f/256.0f;
@@ -522,7 +522,7 @@ void CSlider::DrawVertex(Math::Point pos, Math::Point dim, int icon)
}
else
{
- m_engine->SetTexture("interface/button2.png");
+ m_engine->SetTexture("textures/interface/button2.png");
m_engine->SetState(Gfx::ENG_RSTATE_NORMAL);
uv1.x = 224.0f/256.0f; // cursor
uv1.y = 32.0f/256.0f;