| 835 | } |
| 836 | |
| 837 | static void windowFrameStyleDropdown(int16_t selectedItem) |
| 838 | { |
| 839 | if (selectedItem == -1) |
| 840 | { |
| 841 | return; |
| 842 | } |
| 843 | |
| 844 | if (selectedItem == enumValue(Config::get().windowFrameStyle)) |
| 845 | { |
| 846 | return; |
| 847 | } |
| 848 | |
| 849 | auto& cfg = OpenLoco::Config::get(); |
| 850 | cfg.windowFrameStyle = OpenLoco::Config::WindowFrameStyle(selectedItem); |
| 851 | OpenLoco::Config::write(); |
| 852 | Gfx::invalidateScreen(); |
| 853 | } |
| 854 | |
| 855 | // 0x004BFBB7 |
| 856 | static void onMouseDown(Window& self, WidgetIndex_t wi, [[maybe_unused]] const WidgetId id) |
no test coverage detected