we've been using the wrong define for mac detection

This commit is contained in:
2025-01-08 11:30:21 -06:00
committed by Celtic Minstrel
parent 747b08ee09
commit 73e85836a3
3 changed files with 5 additions and 5 deletions

View File

@@ -126,7 +126,7 @@ int main(int argc, char* argv[]) {
init_tiling();
init_snd_tool();
#ifdef SFML_SYSTEM_MAC
#ifdef SFML_SYSTEM_MACOS
init_menubar(); // This is called twice because Windows and Mac have different ordering requirements
#endif
@@ -190,7 +190,7 @@ void adjust_window (sf::RenderWindow& mainPtr, sf::View& mainView) {
// Apply view to the main window
mainPtr.setView(mainView);
#ifndef SFML_SYSTEM_MAC // This overrides Dock icon on OSX, which isn't what we want at all
#ifndef SFML_SYSTEM_MACOS // This overrides Dock icon on OSX, which isn't what we want at all
const ImageRsrc& icon = ResMgr::graphics.get("icon", true);
mainPtr.setIcon(icon->getSize().x, icon->getSize().y, icon->copyToImage().getPixelsPtr());
#endif