diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-16 16:43:25 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-22 22:16:07 +0100 |
commit | e8fc050b6eebddaadf10563c3764ee455687559d (patch) | |
tree | d55490546e66f56ac85fcc7ce64842d8c93b9def /src/video/win32_v.cpp | |
parent | 320072c8dc03d651f8278a41fc09346c8ed5a174 (diff) | |
download | openttd-e8fc050b6eebddaadf10563c3764ee455687559d.tar.xz |
Add: [OpenGL] Support for 8bpp blitters.
Diffstat (limited to 'src/video/win32_v.cpp')
-rw-r--r-- | src/video/win32_v.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index e32b80497..5e9ad4e98 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -1417,7 +1417,7 @@ static FVideoDriver_Win32OpenGL iFVideoDriver_Win32OpenGL; const char *VideoDriver_Win32OpenGL::Start(const StringList ¶m) { - if (BlitterFactory::GetCurrentBlitter()->GetScreenDepth() != 32) return "Only 32bpp blitters supported"; + if (BlitterFactory::GetCurrentBlitter()->GetScreenDepth() == 0) return "Only real blitters supported"; Dimension old_res = _cur_resolution; // Save current screen resolution in case of errors, as MakeWindow invalidates it. this->vsync = GetDriverParamBool(param, "vsync"); @@ -1565,6 +1565,9 @@ void VideoDriver_Win32OpenGL::Paint() break; case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND: + OpenGLBackend::Get()->UpdatePalette(_local_palette.palette, _local_palette.first_dirty, _local_palette.count_dirty); + break; + case Blitter::PALETTE_ANIMATION_NONE: break; |