vsync, integer scale

This commit is contained in:
2026-04-05 01:31:02 +02:00
parent 788a883c71
commit 22ee9538a2
7 changed files with 24 additions and 0 deletions

View File

@@ -136,6 +136,14 @@ namespace Menu {
[] { return onOff(Options::video.supersampling); },
[](int) { Screen::get()->toggleSupersampling(); }, nullptr});
p.items.push_back({Locale::get("menu.items.vsync"), ItemKind::Toggle,
[] { return onOff(Options::video.vsync); },
[](int) { Screen::get()->toggleVSync(); }, nullptr});
p.items.push_back({Locale::get("menu.items.integer_scale"), ItemKind::Toggle,
[] { return onOff(Options::video.integer_scale); },
[](int) { Screen::get()->toggleIntegerScale(); }, nullptr});
p.items.push_back({Locale::get("menu.items.shader_type"), ItemKind::Cycle,
[] { return std::string(Screen::get()->getActiveShaderName()); }, [](int dir) {
if (dir < 0) Screen::get()->prevShaderType();