Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 977 vs 978 for /trunk/Source Code/Core/Application.cpp

Diff revisions: vs.
  @@ -112,8 +112,10 @@
112 112 vec2<U16> previousDimensions = window.getPreviousDimensions();
113 113 Console::printfn(Locale::get(_ID("START_MAIN_LOOP")));
114 114 //Make sure we are displaying a splash screen
115 - window.setDimensions(config.runtime.splashScreen.w, config.runtime.splashScreen.h);
115 + vec2<U16> splashDimensions(config.runtime.splashScreen.w, config.runtime.splashScreen.h);
116 + window.setDimensions(splashDimensions);
116 117 window.changeType(WindowType::SPLASH);
118 + window.hidden(false);
117 119 Attorney::KernelApplication::startSplashScreen(*_kernel);
118 120 window.swapBuffers(false);
119 121 Attorney::KernelApplication::warmup(*_kernel);
  @@ -155,12 +157,8 @@
155 157 return mainLoopActive();
156 158 }
157 159
158 - void Application::onChangeWindowSize(U16 w, U16 h) const {
159 - Attorney::KernelApplication::onChangeWindowSize(*_kernel, w, h);
160 - }
161 -
162 - void Application::onChangeRenderResolution(U16 w, U16 h) const {
163 - Attorney::KernelApplication::onChangeRenderResolution(*_kernel, w, h);
160 + void Application::onSizeChange(const SizeChangeParams& params) const {
161 + Attorney::KernelApplication::onSizeChange(*_kernel, params);
164 162 }
165 163
166 164 void Application::mainThreadTask(const DELEGATE_CBK<void>& task, bool wait) {