Skip to content
Snippets Groups Projects
Commit 3bc99274 authored by Oz Linden's avatar Oz Linden
Browse files

STORM-1334: compute area using integer math to avoid type conflict

parent 8e6ea481
No related branches found
No related tags found
No related merge requests found
...@@ -59,12 +59,11 @@ LLDebugView::LLDebugView(const LLDebugView::Params& p) ...@@ -59,12 +59,11 @@ LLDebugView::LLDebugView(const LLDebugView::Params& p)
void LLDebugView::init() 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 r;
LLRect rect = getLocalRect(); 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; LLConsole::Params cp;
cp.name("debug console"); cp.name("debug console");
cp.max_lines(20); cp.max_lines(20);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment