3D pixel look follows the window size
The 3D resolution setting refers to a window 1080 device pixels high; smaller windows use a proportionally smaller divisor (1/1 stays full resolution). Settings show the divisor in effect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
05d9cf8824
commit
036c13577c
3 files changed
+38
-3
No files matched your search
+9
-1
@@ -111,7 +111,15 @@ fn item_value(it: Item, s: &Settings) -> String {
|
||||
format!("{}x", s.ui_factor)
|
||||
}
|
||||
}
|
||||
Item::RenderScale => format!("1/{}", s.render_scale.max(1)),
|
||||
Item::RenderScale => {
|
||||
// the setting is for a 1080 pixel high window; show what applies to this one
|
||||
let now = crate::render3d::effective_div(s.render_scale.max(1) as u32, crate::ui::sh());
|
||||
if now as u8 == s.render_scale.max(1) {
|
||||
format!("1/{}", s.render_scale.max(1))
|
||||
} else {
|
||||
format!("1/{} (1/{})", s.render_scale.max(1), now)
|
||||
}
|
||||
}
|
||||
Item::GameSpeed => format!("{}x", s.game_speed as i32),
|
||||
Item::Hints => onoff(s.hints),
|
||||
Item::TouchUi => match s.touch_ui {
|
||||
|
||||
Reference in new issue
Block a user