From 3bc99274f19ce0cbc3e600c0010655e2778ab405 Mon Sep 17 00:00:00 2001
From: Oz Linden <oz@lindenlab.com>
Date: Tue, 28 Jun 2011 10:22:36 -0400
Subject: [PATCH] STORM-1334: compute area using integer math to avoid type
 conflict

---
 indra/newview/lldebugview.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/indra/newview/lldebugview.cpp b/indra/newview/lldebugview.cpp
index aa5d4fc9224..216cc66ef86 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);
-- 
GitLab