From a6aea5c20113fab23f58d3bdd2047fab7e3e2169 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 19 Sep 2019 16:11:58 +0100 Subject: ADL: Support using any pixel format for the display --- engines/adl/display_a2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/adl/display_a2.cpp') diff --git a/engines/adl/display_a2.cpp b/engines/adl/display_a2.cpp index 773bfb21f8..4e25fbd495 100644 --- a/engines/adl/display_a2.cpp +++ b/engines/adl/display_a2.cpp @@ -651,8 +651,8 @@ static Display_A2 *Display_A2_create_helper() { } Display_A2 *Display_A2_create() { - initGraphics(Display_A2::kGfxWidth * 2, Display_A2::kGfxHeight * 2, new Graphics::PixelFormat(2, 5, 5, 5, 0, 10, 5, 0, 0)); - debugN(1, "Initialized graphics with format: %s\n", g_system->getScreenFormat().toString().c_str()); + initGraphics(Display_A2::kGfxWidth * 2, Display_A2::kGfxHeight * 2, nullptr); + debugN(1, "Initialized graphics with format: %s", g_system->getScreenFormat().toString().c_str()); const uint bpp = g_system->getScreenFormat().bytesPerPixel; @@ -661,7 +661,7 @@ Display_A2 *Display_A2_create() { else if (bpp == 2) return Display_A2_create_helper(); else - error("Graphics format uses %d bytes per pixel", bpp); + return nullptr; } } // End of namespace Adl -- cgit v1.2.3