summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerwindow.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-11-10 12:04:35 -0800
committerJames Cook <james@lindenlab.com>2009-11-10 12:04:35 -0800
commit06fd32edf63d38db6f3db4a57798570c69ca1a36 (patch)
tree8419c552864a8eadf4b279660928e0f799682dc5 /indra/newview/llviewerwindow.h
parent34bd95ff1fb1eb69a3bd2a95ac714477ce70bca8 (diff)
EXT-677 Build tool arrows work again with UI size != 1.0
Must use scaled (virtual) pixels in some computations Will review with Richard
Diffstat (limited to 'indra/newview/llviewerwindow.h')
-rw-r--r--indra/newview/llviewerwindow.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.h b/indra/newview/llviewerwindow.h
index c2906b1718..b7f2b91c52 100644
--- a/indra/newview/llviewerwindow.h
+++ b/indra/newview/llviewerwindow.h
@@ -212,8 +212,9 @@ public:
// Window in raw pixels as seen on screen.
const LLRect& getWindowRect() const { return mWindowRect; };
- // portion of window that shows 3d world
+ // portion of window that shows 3d world, in raw unscaled pixels
const LLRect& getWorldViewRect() const { return mWorldViewRect; };
+ // Use this rect for most UI computations, it accounts for UI size scaling
LLRect getVirtualWorldViewRect() const;
S32 getWorldViewHeight() const;
S32 getWorldViewWidth() const;