summaryrefslogtreecommitdiff
path: root/indra/newview/lldebugview.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-06-28 10:22:36 -0400
committerOz Linden <oz@lindenlab.com>2011-06-28 10:22:36 -0400
commit3bc99274f19ce0cbc3e600c0010655e2778ab405 (patch)
tree20d8c2d348598a9e9c97ff796729f8ee1f8eea19 /indra/newview/lldebugview.cpp
parent8e6ea481cfc900e4dc44dcbb185429686e85b8de (diff)
STORM-1334: compute area using integer math to avoid type conflict
Diffstat (limited to 'indra/newview/lldebugview.cpp')
-rw-r--r--indra/newview/lldebugview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/lldebugview.cpp b/indra/newview/lldebugview.cpp
index aa5d4fc922..216cc66ef8 100644
--- a/indra/newview/lldebugview.cpp
+++ b/indra/newview/lldebugview.cpp
@@ -59,12 +59,11 @@ LLDebugView::LLDebugView(const LLDebugView::Params& p)
void LLDebugView::init()
{
- // Horizontal percentage of screen (not window) to draw debug data in
- static const F32 debug_console_percentage = 0.75;
LLRect r;
LLRect rect = getLocalRect();
- r.set(10, rect.getHeight() - 100, rect.getWidth() * debug_console_percentage, 100);
+ // Rectangle to draw debug data in (full height, 3/4 width)
+ r.set(10, rect.getHeight() - 100, ((rect.getWidth()*3)/4), 100);
LLConsole::Params cp;
cp.name("debug console");
cp.max_lines(20);