summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/control.cpp2
-rw-r--r--src/ui/window.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/control.cpp b/src/ui/control.cpp
index 7c77c95..bed84dd 100644
--- a/src/ui/control.cpp
+++ b/src/ui/control.cpp
@@ -57,7 +57,7 @@ CControl::~CControl()
bool CControl::Create(Math::Point pos, Math::Point dim, int icon, EventType eventType)
{
- char text[100];
+ char text[200];
std::string str_text;
if ( eventType == EVENT_NULL )
diff --git a/src/ui/window.cpp b/src/ui/window.cpp
index 8005939..6e082e6 100644
--- a/src/ui/window.cpp
+++ b/src/ui/window.cpp
@@ -1191,8 +1191,8 @@ void CWindow::DrawVertex(Math::Point pos, Math::Point dim, int icon)
else if ( icon == 1 )
{
m_engine->SetTexture("button1.png");
- m_engine->SetState(Gfx::ENG_RSTATE_TTEXTURE_WHITE);
- uv1.x = 128.0f/256.0f; // yellow tooltip
+ m_engine->SetState(Gfx::ENG_RSTATE_NORMAL);
+ uv1.x = 128.0f/256.0f; // white tooltip
uv1.y = 0.0f/256.0f;
uv2.x = 224.0f/256.0f;
uv2.y = 16.0f/256.0f;