implement window position save and restore in OSX

This commit is contained in:
2019-08-07 10:58:17 +02:00
parent 52726257f9
commit 079f66edf9
5 changed files with 21 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
#import "GameViewController.h"
#import <OpenGLES/ES3/glext.h>
#include "app.h"
#include "settings.h"
#import "objc_utils.h"
std::mutex render_mutex;
@@ -433,7 +434,8 @@ std::set<UITouch*> ignored_touch;
App::I->width = view.frame.size.width * view.contentScaleFactor;
App::I->height = view.frame.size.height * view.contentScaleFactor;
App::I->zoom = Settings::value_or<Serializer::Float>("ui-scale", (float)view.contentScaleFactor);
App::I->render_thread_start();
App::I->ui_thread_start();
}