ecode: Fixes problematic default SDL menus.

This commit is contained in:
Martín Lucas Golini
2022-07-19 02:14:19 -03:00
parent 47e87f7d95
commit 146c173c1f
6 changed files with 109 additions and 4 deletions

View File

@@ -6,6 +6,10 @@
#include <algorithm>
#include <args/args.hxx>
#if EE_PLATFORM == EE_PLATFORM_MACOSX
#include "macos/macos.hpp"
#endif
namespace ecode {
Clock globalClock;
@@ -3277,6 +3281,10 @@ void App::init( std::string file, const Float& pidelDensity, const std::string&
ecode::Version::getCodename().c_str() );
if ( mWindow->isOpen() ) {
#if EE_PLATFORM == EE_PLATFORM_MACOSX
macOS_CreateApplicationMenus();
#endif
Log::info( "Window creation took: %.2f ms", globalClock.getElapsedTime().asMilliseconds() );
if ( mConfig.window.position != Vector2i( -1, -1 ) &&