diff --git a/es-core/src/Window.cpp b/es-core/src/Window.cpp index 76bb1754e..d9dea2050 100644 --- a/es-core/src/Window.cpp +++ b/es-core/src/Window.cpp @@ -13,7 +13,6 @@ Window::Window() : mNormalizeNextUpdate(false), mFrameTimeElapsed(0), mFrameCoun { mHelp = new HelpComponent(this); mBackgroundOverlay = new ImageComponent(this); - mBackgroundOverlay->setImage(":/scroll_gradient.png"); } Window::~Window() @@ -65,6 +64,8 @@ bool Window::init(unsigned int width, unsigned int height) return false; } + mBackgroundOverlay->setImage(":/scroll_gradient.png"); + InputManager::getInstance()->init(); ResourceManager::getInstance()->reloadAll();