RISCOS: Use double buffering in full screen mode when V-sync is enabled

This commit is contained in:
Cameron Cawley 2023-02-19 15:09:06 +00:00
parent 971148c9bd
commit 8adcc29df9
4 changed files with 92 additions and 0 deletions

View file

@ -26,6 +26,7 @@
#include "backends/platform/sdl/riscos/riscos.h"
#include "backends/saves/default/default-saves.h"
#include "backends/events/riscossdl/riscossdl-events.h"
#include "backends/graphics/riscossdl/riscossdl-graphics.h"
#include "backends/fs/riscos/riscos-fs-factory.h"
#include "backends/fs/riscos/riscos-fs.h"
@ -57,6 +58,10 @@ void OSystem_RISCOS::initBackend() {
if (_eventSource == 0)
_eventSource = new RISCOSSdlEventSource();
// Create the graphics manager
if (!_graphicsManager)
_graphicsManager = new RISCOSSdlGraphicsManager(_eventSource, _window);
// Create the savefile manager
if (_savefileManager == 0) {
Common::String savePath = "/<Choices$Write>/ScummVM/Saves";