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/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; 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);