diff --git a/engines/ags/engine/gfx/ali_3d_scummvm.h b/engines/ags/engine/gfx/ali_3d_scummvm.h index eee01388e85..e9516d3e119 100644 --- a/engines/ags/engine/gfx/ali_3d_scummvm.h +++ b/engines/ags/engine/gfx/ali_3d_scummvm.h @@ -160,12 +160,13 @@ public: ScummVMRendererGraphicsDriver(); ~ScummVMRendererGraphicsDriver() override; - const char *GetDriverName() override { - return "SDL 2D Software renderer"; - } const char *GetDriverID() override { return "Software"; } + const char *GetDriverName() override { + return "SDL 2D Software renderer"; + } + void SetTintMethod(TintMethod /*method*/) override; bool SetDisplayMode(const DisplayMode &mode) override; void UpdateDeviceScreen(const Size &screen_sz) override; diff --git a/engines/ags/engine/gfx/graphics_driver.h b/engines/ags/engine/gfx/graphics_driver.h index c47f4bb119f..2ace2665e92 100644 --- a/engines/ags/engine/gfx/graphics_driver.h +++ b/engines/ags/engine/gfx/graphics_driver.h @@ -97,8 +97,10 @@ typedef void (*GFXDRV_CLIENTCALLBACKINITGFX)(void *data); class IGraphicsDriver { public: - virtual const char *GetDriverName() = 0; + // Gets graphic driver's identifier virtual const char *GetDriverID() = 0; + // Gets graphic driver's "friendly name" + virtual const char *GetDriverName() = 0; virtual void SetTintMethod(TintMethod method) = 0; // Initialize given display mode virtual bool SetDisplayMode(const DisplayMode &mode) = 0; diff --git a/engines/ags/engine/main/graphics_mode.cpp b/engines/ags/engine/main/graphics_mode.cpp index 3c95e533ef7..e30326ca9c1 100644 --- a/engines/ags/engine/main/graphics_mode.cpp +++ b/engines/ags/engine/main/graphics_mode.cpp @@ -470,6 +470,7 @@ bool graphics_mode_set_dm(const DisplayMode &dm) { _GP(SavedWindowedSetting).Dm = rdm; else _GP(SavedFullscreenSetting).Dm = rdm; + Debug::Printf(kDbgMsg_Info, "Graphics driver set: %s", _G(gfxDriver)->GetDriverName()); Debug::Printf(kDbgMsg_Info, "Graphics mode set: %d x %d (%d-bit) %s", rdm.Width, rdm.Height, rdm.ColorDepth, rdm.IsWindowed() ? "windowed" : (rdm.IsRealFullscreen() ? "fullscreen" : "fullscreen desktop"));