Skip to content

Commit 5d44552

Browse files
committed
Allow UI scale values as low as .5 to better meet HiDPI needs
Adapted from Rye's work on Alchemy, Thanks!
1 parent ffa32f8 commit 5d44552

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

indra/newview/llviewerwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const F32 MIN_AFK_TIME = 2.f; // minimum time after setting away state before co
247247
const F32 MAX_FAST_FRAME_TIME = 0.5f;
248248
const F32 FAST_FRAME_INCREMENT = 0.1f;
249249

250-
const F32 MIN_DISPLAY_SCALE = 0.75f;
250+
const F32 MIN_DISPLAY_SCALE = 0.5f;
251251

252252
std::string LLViewerWindow::sSnapshotBaseName;
253253
std::string LLViewerWindow::sSnapshotDir;

indra/newview/skins/default/xui/en-us/panel_preferences_general.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<check_box bottom_delta="0" follows="top" height="16" initial_value="false" label="Hide All Group Titles" left="101" name="show_all_title_checkbox"/>
2424
<check_box bottom_delta="-18" follows="top" height="16" initial_value="false" label="Hide My Group Title" left="101" name="show_my_title_checkbox"/>
2525
<text bottom="-180" height="12" left="10" name="UI Size:">UI Size:</text>
26-
<slider bottom="-180" can_edit_text="true" height="16" increment="0.025" initial_val="1" left="98" max_val="2.4" min_val="0.75" name="ui_scale_slider" value="1" width="227" />
26+
<slider bottom="-180" can_edit_text="true" height="16" increment="0.025" initial_val="1" left="98" max_val="2.4" min_val="0.5" name="ui_scale_slider" value="1" width="227" />
2727
<check_box bottom="-195" height="16" initial_value="false" label="Use resolution independent scale" left="101" name="ui_auto_scale"/>
2828
<check_box bottom="-219" height="16" left="10" label="Go away when idle" name="away_when_idle_checkbox"/>
2929
<spinner bottom="-220" decimal_digits="0" height="16" increment="1" initial_val="300" label="Away Timeout:" label_width="91" left="136" max_val="600" min_val="0" name="afk_timeout_spinner" width="137"/>

0 commit comments

Comments
 (0)