From 042622b5db431be2a62556b03d7a36e8f438db74 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Mon, 13 Feb 2012 15:56:31 +0100 Subject: [PATCH 1/2] Fix a logic typo in windlight floater --- indra/newview/llfloaterwindlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llfloaterwindlight.cpp b/indra/newview/llfloaterwindlight.cpp index 390c8f581..5d69cc246 100644 --- a/indra/newview/llfloaterwindlight.cpp +++ b/indra/newview/llfloaterwindlight.cpp @@ -640,7 +640,7 @@ void LLFloaterWindLight::onColorControlIMoved(LLUICtrl* ctrl, void* userData) if(color_ctrl->isSunOrAmbientColor) scale = WL_SUN_AMBIENT_SLIDER_SCALE; else if(color_ctrl->isBlueHorizonOrDensity) - WL_BLUE_HORIZON_DENSITY_SCALE; + scale = WL_BLUE_HORIZON_DENSITY_SCALE; F32 iVal = color_ctrl->i * scale; From 4cbf259ab3e21f053ddf70916fba0f3cc015ffff Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Mon, 13 Feb 2012 20:38:44 +0100 Subject: [PATCH 2/2] Experimental tablet and pen support --- indra/newview/app_settings/settings.xml | 12 ++++++++++++ indra/newview/llviewerwindow.cpp | 8 ++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 25687ed3f..b33472ac1 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -9,6 +9,18 @@ settings_rlv.xml + SGAbsolutePointer + + Comment + Support pen tablets and absolute pointer devices by disabling mouse wrapping + Persist + 1 + Type + Boolean + Value + 0 + + WaterPresetName Comment diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 5267c32e8..a45023005 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -2771,8 +2771,12 @@ void LLViewerWindow::handleScrollWheel(S32 clicks) void LLViewerWindow::moveCursorToCenter() { - S32 x = getWorldViewWidthScaled() / 2; - S32 y = getWorldViewHeightScaled() / 2; + if (gSavedSettings.getBOOL("SGAbsolutePointer")) { + return; + } + + S32 x = getWorldViewWidthScaled() / 2; + S32 y = getWorldViewHeightScaled() / 2; //on a forced move, all deltas get zeroed out to prevent jumping mCurrentMousePoint.set(x,y);