[Orxonox-commit 1242] r5960 - code/trunk/src/orxonox/overlays
rgrieder at orxonox.net
rgrieder at orxonox.net
Fri Oct 16 11:26:52 CEST 2009
Author: rgrieder
Date: 2009-10-16 11:26:52 +0200 (Fri, 16 Oct 2009)
New Revision: 5960
Modified:
code/trunk/src/orxonox/overlays/InGameConsole.cc
Log:
Fixed console overlay retraction inconsistency.
Modified: code/trunk/src/orxonox/overlays/InGameConsole.cc
===================================================================
--- code/trunk/src/orxonox/overlays/InGameConsole.cc 2009-10-16 08:19:47 UTC (rev 5959)
+++ code/trunk/src/orxonox/overlays/InGameConsole.cc 2009-10-16 09:26:52 UTC (rev 5960)
@@ -248,8 +248,8 @@
this->windowResized(this->getWindowWidth(), this->getWindowWidth());
// move overlay "above" the top edge of the screen
- // we take -1.2 because the border makes the panel bigger
- this->consoleOverlayContainer_->setTop(-1.2 * this->relativeHeight);
+ // we take -1.3 because the border makes the panel bigger
+ this->consoleOverlayContainer_->setTop(-1.3 * this->relativeHeight);
Shell::getInstance().addOutputLevel(true);
@@ -373,11 +373,11 @@
{
// scrolling up
// note: +0.01 for the same reason as when scrolling down
- float deltaScroll = (1.2 * this->relativeHeight + 0.01 + oldTop) * time.getDeltaTime() * this->scrollSpeed_;
- if (oldTop - deltaScroll <= -1.2 * this->relativeHeight)
+ float deltaScroll = (1.3 * this->relativeHeight + 0.01 + oldTop) * time.getDeltaTime() * this->scrollSpeed_;
+ if (oldTop - deltaScroll <= -1.3 * this->relativeHeight)
{
// window has completely scrolled up
- this->consoleOverlayContainer_->setTop(-1.2 * this->relativeHeight);
+ this->consoleOverlayContainer_->setTop(-1.3 * this->relativeHeight);
this->scroll_ = 0;
this->consoleOverlay_->hide();
}
More information about the Orxonox-commit
mailing list