From bebdb3e7530b326a40fd07544ee9f013280b2773 Mon Sep 17 00:00:00 2001 From: titiger Date: Wed, 9 Oct 2019 01:48:24 +0200 Subject: [PATCH] correct scrollbar rendering in comboboxes. If not enough items list, render shorter scrollbar. --- source/glest_game/graphics/renderer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index aec9edb4..cc73e43e 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -3655,7 +3655,6 @@ void Renderer::renderScrollBar(const GraphicScrollBar *sb) { // calc real length if(sb->getElementCount()getVisibleSize()){ int realLength=sb->getElementCount()*sb->getLength()/ sb->getVisibleSize(); - printf("y=%d h=%d realH=%d realY=%d\n",y,h,realLength,y+(h-realLength)); if (sb->getHorizontal()) { x=x-(w-realLength); } @@ -3664,8 +3663,6 @@ void Renderer::renderScrollBar(const GraphicScrollBar *sb) { h=realLength; }; } - printf("y=%d h=%d\n",y,h); - //const Vec3f disabledTextColor= Vec3f(0.25f,0.25f,0.25f); glPushAttrib(GL_CURRENT_BIT | GL_ENABLE_BIT); /////////////////////