1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-24 18:00:18 +01:00

Compare commits

...

3 commits

Author SHA1 Message Date
Nicola Smaniotto
5ffbab8208
Simplify icon installation (#114)
Uses a foreach loop to iterate over the possible sizes. Should help in the future if more are added.
2021-12-26 13:43:47 +03:00
Muzychenko Andrey
a6e2a433c4 Added secondary clear hack.
Issue #88
2021-12-26 13:25:25 +03:00
Kowalski Dragon
ad4a17c2f2
Add assets (#113)
* Add 128x128 icon needed for Flathub submission

* Add screenshot

* Align metainfo to use screenshot in the upstream repository

* Edit CMake to install 128x128 icon in correct folder

* Add jpg screenshots
2021-12-26 13:06:31 +03:00
6 changed files with 10 additions and 14 deletions

View file

@ -222,13 +222,9 @@ if(UNIX AND NOT APPLE)
include(GNUInstallDirs) include(GNUInstallDirs)
install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(FILES "/Platform/Linux/${PROJECT_NAME}.desktop" DESTINATION "share/applications") install(FILES "/Platform/Linux/${PROJECT_NAME}.desktop" DESTINATION "share/applications")
install(FILES "/Platform/Linux/${PROJECT_NAME}.metainfo.xml" DESTINATION "share/metainfo") install(FILES "/Platform/Linux/${PROJECT_NAME}.metainfo.xml" DESTINATION "share/metainfo")
install(FILES "${PROJECT_NAME}/Icon_16x16.png" DESTINATION foreach(S 16 32 48 128 192)
"share/icons/hicolor/16x16/apps" RENAME "${PROJECT_NAME}.png") install(FILES "${PROJECT_NAME}/Icon_${S}x${S}.png" DESTINATION
install(FILES "${PROJECT_NAME}/Icon_32x32.png" DESTINATION "share/icons/hicolor/${S}x${S}/apps" RENAME "${PROJECT_NAME}.png")
"share/icons/hicolor/32x32/apps" RENAME "${PROJECT_NAME}.png") endforeach(S)
install(FILES "${PROJECT_NAME}/Icon_48x48.png" DESTINATION
"share/icons/hicolor/48x48/apps" RENAME "${PROJECT_NAME}.png")
install(FILES "${PROJECT_NAME}/Icon_192x192.png" DESTINATION
"share/icons/hicolor/192x192/apps" RENAME "${PROJECT_NAME}.png")
endif() endif()

View file

@ -21,13 +21,10 @@
</provides> </provides>
<screenshots> <screenshots>
<screenshot type="default"> <screenshot type="default">
<image>https://github.com/kowalski7cc/com.github.k4zmu2a.spacecadetpinball/blob/main/screenshots/screenshot-1.png?raw=true</image> <image>https://raw.githubusercontent.com/k4zmu2a/SpaceCadetPinball/master/Screenshots/screenshot-1.jpg</image>
</screenshot> </screenshot>
<screenshot> <screenshot>
<image>https://github.com/kowalski7cc/com.github.k4zmu2a.spacecadetpinball/blob/main/screenshots/screenshot-2.png?raw=true</image> <image>https://raw.githubusercontent.com/k4zmu2a/SpaceCadetPinball/master/Screenshots/screenshot-2.jpg</image>
</screenshot>
<screenshot>
<image>https://github.com/kowalski7cc/com.github.k4zmu2a.spacecadetpinball/blob/main/screenshots/screenshot-3.png?raw=true</image>
</screenshot> </screenshot>
</screenshots> </screenshots>
<releases> <releases>

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -253,6 +253,9 @@ int winmain::WinMain(LPCSTR lpCmdLine)
RenderUi(); RenderUi();
SDL_RenderClear(renderer); SDL_RenderClear(renderer);
// Alternative clear hack, clear might fail on some systems
// Todo: remove original clear, if save for all platforms
SDL_RenderFillRect(renderer, nullptr);
render::PresentVScreen(); render::PresentVScreen();
ImGui::Render(); ImGui::Render();