diff --git a/Source/utils/display.cpp b/Source/utils/display.cpp index 3f0b616ec83..67e366dc269 100644 --- a/Source/utils/display.cpp +++ b/Source/utils/display.cpp @@ -242,9 +242,6 @@ float GetDpiScalingFactor() void SetVideoMode(int width, int height, int bpp, uint32_t flags) { Log("Setting video mode {}x{} bpp={} flags=0x{:08X}", width, height, bpp, flags); -#ifdef __DREAMCAST__ - enable_dma_driver(); -#endif ghMainWnd = SDL_SetVideoMode(width, height, bpp, flags); if (ghMainWnd == nullptr) { ErrSdl(); @@ -323,6 +320,9 @@ bool SpawnWindow(const char *lpWindowName) initFlags |= SDL_INIT_GAMECONTROLLER; SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight"); +#endif +#ifdef __DREAMCAST__ + enable_dma_driver(); #endif if (SDL_Init(initFlags) <= -1) { ErrSdl(); @@ -478,9 +478,6 @@ void SetFullscreenMode() if (*sgOptions.Graphics.fullscreen) { flags |= SDL_FULLSCREEN; } -#ifdef __DREAMCAST__ - enable_dma_driver(); -#endif ghMainWnd = SDL_SetVideoMode(0, 0, 0, flags); if (ghMainWnd == NULL) { ErrSdl();