| 95 | } |
| 96 | |
| 97 | void askToDownloadDefaultWine() { |
| 98 | Msg labelId = Msg::ERROR_NO_WINE; |
| 99 | #ifdef BOXEDWINE_HIGHDPI |
| 100 | U32 scale = KNativeSystem::getDpiScale(); |
| 101 | if (scale >= 1500 && !GlobalSettings::defaultFont) { |
| 102 | labelId = Msg::ERROR_NO_WINE_HIGH_DPI; |
| 103 | } |
| 104 | #endif |
| 105 | new YesNoDlg(Msg::GENERIC_DLG_ERROR_TITLE, getTranslation(labelId), [](bool yes) { |
| 106 | if (yes) { |
| 107 | GlobalSettings::downloadFileSystem(GlobalSettings::getAvailableWineVersions().front(), [](bool success) { |
| 108 | gotoView(VIEW_INSTALL, B("Demo")); |
| 109 | }); |
| 110 | } else { |
| 111 | gotoView(VIEW_OPTIONS, B("Wine")); |
| 112 | } |
| 113 | }); |
| 114 | } |
| 115 | |
| 116 | #include "../../../lib/imgui/imgui_internal.h" |
| 117 | namespace ImGui { |
no test coverage detected