summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2016-06-13 10:21:48 +0200
committeroy <Tom_Adams@web.de>2016-06-13 10:21:48 +0200
commit62a4bd8289b02cad91d7f6141792d8f61a82ab9c (patch)
tree97f7d1241aee343166334df888a03598cfbcfde6
parentfc9c9d64fbee48655bc264d4dc897bb488e663ec (diff)
fixed mistake in listbox code # 1463
-rw-r--r--src/engine/client/backend_sdl.cpp2
-rw-r--r--src/game/client/components/menus_demo.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp
index 502b41bd6..821249f55 100644
--- a/src/engine/client/backend_sdl.cpp
+++ b/src/engine/client/backend_sdl.cpp
@@ -221,7 +221,7 @@ void CCommandProcessorFragment_OpenGL::Cmd_Texture_Create(const CCommandBuffer::
// resample if needed
if(pCommand->m_Format == CCommandBuffer::TEXFORMAT_RGBA || pCommand->m_Format == CCommandBuffer::TEXFORMAT_RGB)
{
- int MaxTexSize;
+ int MaxTexSize;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &MaxTexSize);
if(Width > MaxTexSize || Height > MaxTexSize)
{
diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp
index 40a9e5b54..2ac1f5abe 100644
--- a/src/game/client/components/menus_demo.cpp
+++ b/src/game/client/components/menus_demo.cpp
@@ -349,7 +349,7 @@ CMenus::CListboxItem CMenus::UiDoListboxNextRow()
if(Item.m_Rect.y+Item.m_Rect.h > gs_ListBoxOriginalView.y)
{
- if(Item.m_HitRect.y < Item.m_HitRect.y) // clip the selection
+ if(Item.m_HitRect.y < gs_ListBoxOriginalView.y) // clip the selection
{
Item.m_HitRect.h -= gs_ListBoxOriginalView.y-Item.m_HitRect.y;
Item.m_HitRect.y = gs_ListBoxOriginalView.y;