Skip to content

Commit

Permalink
Add higher resolution graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed Mar 2, 2018
1 parent d122d72 commit f93eeb8
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
Binary file added Graphics/desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Graphics/es/save_unix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Graphics/fr/save_unix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Graphics/ja/save_unix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Graphics/pt_BR/save_unix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Graphics/save_unix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 9 additions & 6 deletions binding-mri/wallpaper-binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,16 @@ RB_METHOD(wallpaperSet)
if (hKey)
RegCloseKey(hKey);
#else
std::size_t found = imgname.find("w32");
if (found != std::string::npos) imgname.replace(imgname.end()-3, imgname.end(), "unix");
imgname = shState->config().gameFolder + "/Wallpaper/" + imageName + ".png";

#ifdef __APPLE__
if (!isCached) {
MacDesktop::CacheCurrentBackground();
isCached = true;
}
// imgname = shState->config().gameFolder + "/Wallpaper/" + imageName + "2x.bmp";
MacDesktop::ChangeBackground(imgname, ((color >> 16) & 0xFF) / 255.0, ((color >> 8) & 0xFF) / 255.0, ((color) & 0xFF) / 255.0);
if (!isCached) {
MacDesktop::CacheCurrentBackground();
isCached = true;
}
MacDesktop::ChangeBackground(imgname, ((color >> 16) & 0xFF) / 255.0, ((color >> 8) & 0xFF) / 255.0, ((color) & 0xFF) / 255.0);
#else
// XXX Implement me!
#endif
Expand Down
1 change: 1 addition & 0 deletions install.command
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ echo "-> ${cyan}Install OneShot apps to Steam directory...${color_reset}"
cp -f "./xScripts.rxdata" "$ONESHOT_PATH/Data/xScripts.rxdata"
cp -rf "./OneShot.app" "$ONESHOT_PATH"
cp -rf "./_______.app" "$ONESHOT_PATH"
cp -R "./Graphics/" "$ONESHOT_PATH/Wallpapers"
ln -sfh "$ONESHOT_PATH/OneShot.app" "$HOME/Applications/OneShot.app"

echo "\n${green}Complete! ${white}Please report any issues to https://github.com/vinyldarkscratch/synglechance/issues${color_reset}"
Expand Down

0 comments on commit f93eeb8

Please sign in to comment.