diff --git a/po/hu.po b/po/hu.po index 0c4b5bb..3f6970d 100644 --- a/po/hu.po +++ b/po/hu.po @@ -114,7 +114,7 @@ msgid "Open logfile" msgstr "Logfájl megnyitása" #. Translators: Menu entry to open the project's website with the browser -#: src/Application.cpp:323 src/Application.cpp:398 +#: src/Application.cpp:323 src/Application.cpp:399 msgid "Visit website" msgstr "Weboldal felkeresése" @@ -124,72 +124,72 @@ msgid "About" msgstr "Névjegy" #. Translators: Welcome message in the welcome window -#: src/Application.cpp:358 +#: src/Application.cpp:359 #, c-format msgid "Welcome to %s" msgstr "Üdvözli a %s" #. Translators: Message in the welcome window while downloading the #. latest version number -#: src/Application.cpp:370 +#: src/Application.cpp:371 #, c-format msgid "Fetching latest %s version number..." msgstr "Legutóbbi %s verziószám lekérése..." #. Translators: Message in the welcome window, when an error occurred #. while fetching the version number from the web -#: src/Application.cpp:376 +#: src/Application.cpp:377 #, c-format msgid "Error fetching latest %s version number" msgstr "Hiba a legutóbbi %s verziószám lekérésénél" #. Translators: Message in the welcome window, when the downloaded #. latest version is the same as the current application's version -#: src/Application.cpp:386 +#: src/Application.cpp:387 #, c-format msgid "Congratulations! You are using the latest version of %s" msgstr "Gratulálunk! A %s legújabb verzióját használja" #. Translators: Message in the welcome window, when the downloaded #. latest version is newer than the current application's version -#: src/Application.cpp:394 +#: src/Application.cpp:395 #, c-format msgid "A new version of %s is available: %s" msgstr "Egy új %s verzió elérhető: %s" #. Translators: Checkbox on the welcome window -#: src/Application.cpp:409 +#: src/Application.cpp:410 msgid "Show this window on application startup" msgstr "Ablak megjelenítése indításkor" #. Translators: Button on the welcome window to create a new empty preset -#: src/Application.cpp:414 +#: src/Application.cpp:415 msgid "New preset - empty" msgstr "Új konfiguráció - üres" #. Translators: Button on the welcome window to create a new preset filled with all #. available devices -#: src/Application.cpp:422 +#: src/Application.cpp:423 msgid "New preset - add all MIDI devices" msgstr "Új konfiguráció - az összes MIDI eszközzel" #. Translators: Button on the welcome window to browse the filesystem for a preset to load -#: src/Application.cpp:429 +#: src/Application.cpp:430 msgid "Browse preset" msgstr "Konfiguráció tallózása" #. Translators: Button on the welcome window to open the last opened preset -#: src/Application.cpp:438 +#: src/Application.cpp:439 msgid "Open last preset" msgstr "Legutóbbi konfiguráció megnyitása" #. Translators: Button on the welcome window to show the 3rd party library licenses -#: src/Application.cpp:450 +#: src/Application.cpp:451 msgid "Open source licenses" msgstr "Licencinformációk" #. Translators: The message on the popup window when attempting to close the program -#: src/Application.cpp:471 +#: src/Application.cpp:472 msgid "Do you want to save changes?" msgstr "Menti a módosításokat?" diff --git a/po/midiconn.pot b/po/midiconn.pot index d17fb01..f2c06d7 100644 --- a/po/midiconn.pot +++ b/po/midiconn.pot @@ -115,7 +115,7 @@ msgid "Open logfile" msgstr "" #. Translators: Menu entry to open the project's website with the browser -#: src/Application.cpp:323 src/Application.cpp:398 +#: src/Application.cpp:323 src/Application.cpp:399 msgid "Visit website" msgstr "" @@ -125,72 +125,72 @@ msgid "About" msgstr "" #. Translators: Welcome message in the welcome window -#: src/Application.cpp:358 +#: src/Application.cpp:359 #, c-format msgid "Welcome to %s" msgstr "" #. Translators: Message in the welcome window while downloading the #. latest version number -#: src/Application.cpp:370 +#: src/Application.cpp:371 #, c-format msgid "Fetching latest %s version number..." msgstr "" #. Translators: Message in the welcome window, when an error occurred #. while fetching the version number from the web -#: src/Application.cpp:376 +#: src/Application.cpp:377 #, c-format msgid "Error fetching latest %s version number" msgstr "" #. Translators: Message in the welcome window, when the downloaded #. latest version is the same as the current application's version -#: src/Application.cpp:386 +#: src/Application.cpp:387 #, c-format msgid "Congratulations! You are using the latest version of %s" msgstr "" #. Translators: Message in the welcome window, when the downloaded #. latest version is newer than the current application's version -#: src/Application.cpp:394 +#: src/Application.cpp:395 #, c-format msgid "A new version of %s is available: %s" msgstr "" #. Translators: Checkbox on the welcome window -#: src/Application.cpp:409 +#: src/Application.cpp:410 msgid "Show this window on application startup" msgstr "" #. Translators: Button on the welcome window to create a new empty preset -#: src/Application.cpp:414 +#: src/Application.cpp:415 msgid "New preset - empty" msgstr "" #. Translators: Button on the welcome window to create a new preset filled with all #. available devices -#: src/Application.cpp:422 +#: src/Application.cpp:423 msgid "New preset - add all MIDI devices" msgstr "" #. Translators: Button on the welcome window to browse the filesystem for a preset to load -#: src/Application.cpp:429 +#: src/Application.cpp:430 msgid "Browse preset" msgstr "" #. Translators: Button on the welcome window to open the last opened preset -#: src/Application.cpp:438 +#: src/Application.cpp:439 msgid "Open last preset" msgstr "" #. Translators: Button on the welcome window to show the 3rd party library licenses -#: src/Application.cpp:450 +#: src/Application.cpp:451 msgid "Open source licenses" msgstr "" #. Translators: The message on the popup window when attempting to close the program -#: src/Application.cpp:471 +#: src/Application.cpp:472 msgid "Do you want to save changes?" msgstr "" diff --git a/src/Application.cpp b/src/Application.cpp index 3513e96..45c1215 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -351,7 +351,8 @@ void Application::render_welcome_window() ImGui::SetNextWindowSizeConstraints({600 * scale, 0}, {600 * scale, 400 * scale}); if (ImGui::BeginPopup("Welcome", ImGuiWindowFlags_AlwaysAutoResize)) { - ImGui::Image(m_logo_texture.m_texture, ImVec2{96 * scale, 96 * scale}); + ImGui::Image(reinterpret_cast(m_logo_texture.m_texture), + ImVec2{96 * scale, 96 * scale}); ImGui::SameLine(); ImGui::BeginGroup(); // Translators: Welcome message in the welcome window diff --git a/src/NodeEditor.cpp b/src/NodeEditor.cpp index fdd9ef0..ecc2385 100644 --- a/src/NodeEditor.cpp +++ b/src/NodeEditor.cpp @@ -262,8 +262,7 @@ void NodeEditor::renderHelpText() void NodeEditor::handleDelete() { - if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Delete)) || - ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Backspace))) + if (ImGui::IsKeyPressed(ImGuiKey_Delete) || ImGui::IsKeyPressed(ImGuiKey_Backspace)) { std::vector selected_ids; selected_ids.resize(ImNodes::NumSelectedNodes()); diff --git a/src/main.cpp b/src/main.cpp index e165d14..1eca21d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -186,6 +186,8 @@ MC_MAIN // Rendering ImGui::Render(); + SDL_RenderSetScale( + renderer, io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); SDL_RenderClear(renderer); ImGui_ImplSDLRenderer2_RenderDrawData(ImGui::GetDrawData(), renderer); SDL_RenderPresent(renderer);