| 104 | } |
| 105 | |
| 106 | void DesktopDrawingProgramScreen::on_tab_close() { |
| 107 | if(main.worlds.empty()) |
| 108 | main.create_new_tab({ |
| 109 | .isClient = false |
| 110 | }); |
| 111 | else if(!main.world) |
| 112 | main.switch_to_tab(0); |
| 113 | } |
| 114 | |
| 115 | float DesktopDrawingProgramScreen::calculate_gui_scale() { |
| 116 | Vector2f maxWindowSizeBeforeForcedFit = main.g.final_gui_scale_not_fit() * Vector2f{700.0f, 700.0f}; |
nothing calls this directly
no test coverage detected