SDL: Move getDisplayDpiFromSdl and getDpiScalingFactor into the SdlWindow class

This commit is contained in:
Cameron Cawley 2021-08-14 14:33:05 +01:00 committed by Thierry Crozat
parent 617f27b816
commit c4699cb280
9 changed files with 95 additions and 73 deletions

View file

@ -30,6 +30,7 @@
#include "backends/audiocd/macosx/macosx-audiocd.h"
#include "backends/platform/sdl/macosx/appmenu_osx.h"
#include "backends/platform/sdl/macosx/macosx.h"
#include "backends/platform/sdl/macosx/macosx-window.h"
#include "backends/updates/macosx/macosx-updates.h"
#include "backends/taskbar/macosx/macosx-taskbar.h"
#include "backends/text-to-speech/macosx/macosx-text-to-speech.h"
@ -62,9 +63,8 @@ OSystem_MacOSX::~OSystem_MacOSX() {
}
void OSystem_MacOSX::init() {
// Use an iconless window on OS X, as we use a nicer external icon there.
initSDL();
_window = new SdlIconlessWindow();
_window = new SdlWindow_MacOSX();
#if defined(USE_TASKBAR)
// Initialize taskbar manager