Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
457df9cd
Commit
457df9cd
authored
6 years ago
by
AndreyL ProductEngine
Browse files
Options
Downloads
Patches
Plain Diff
SL-10891 Reset UI scale factor on first run if OS's display scaling is not 100%
parent
3c91eac8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/contributions.txt
+1
-0
1 addition, 0 deletions
doc/contributions.txt
indra/newview/app_settings/settings.xml
+13
-0
13 additions, 0 deletions
indra/newview/app_settings/settings.xml
indra/newview/llviewerwindow.cpp
+10
-0
10 additions, 0 deletions
indra/newview/llviewerwindow.cpp
with
24 additions
and
0 deletions
doc/contributions.txt
+
1
−
0
View file @
457df9cd
...
...
@@ -222,6 +222,7 @@ Ansariel Hiller
MAINT-8085
MAINT-8723
SL-10385
SL-10891
Aralara Rajal
Arare Chantilly
CHUIBUG-191
...
...
This diff is collapsed.
Click to expand it.
indra/newview/app_settings/settings.xml
+
13
−
0
View file @
457df9cd
...
...
@@ -16310,6 +16310,19 @@
<key>
Value
</key>
<integer>
0
</integer>
</map>
<key>
ResetUIScaleOnFirstRun
</key>
<map>
<key>
Comment
</key>
<string>
Resets the UI scale factor on first run due to changed display scaling behavior
</string>
<key>
Persist
</key>
<integer>
1
</integer>
<key>
Type
</key>
<string>
Boolean
</string>
<key>
Value
</key>
<integer>
1
</integer>
<key>
Backup
</key>
<integer>
0
</integer>
</map>
</map>
</llsd>
This diff is collapsed.
Click to expand it.
indra/newview/llviewerwindow.cpp
+
10
−
0
View file @
457df9cd
...
...
@@ -1763,6 +1763,16 @@ LLViewerWindow::LLViewerWindow(const Params& p)
LLCoordScreen
scr
;
mWindow
->
getSize
(
&
scr
);
// Reset UI scale factor on first run if OS's display scaling is not 100%
if
(
gSavedSettings
.
getBOOL
(
"FSResetUIScaleOnFirstRun"
))
{
if
(
mWindow
->
getSystemUISize
()
!=
1.
f
)
{
gSavedSettings
.
setF32
(
"UIScaleFactor"
,
1.
f
);
}
gSavedSettings
.
setBOOL
(
"ResetUIScaleOnFirstRun"
,
FALSE
);
}
// Get the real window rect the window was created with (since there are various OS-dependent reasons why
// the size of a window or fullscreen context may have been adjusted slightly...)
F32
ui_scale_factor
=
llclamp
(
gSavedSettings
.
getF32
(
"UIScaleFactor"
),
MIN_UI_SCALE
,
MAX_UI_SCALE
)
*
mWindow
->
getSystemUISize
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment