Fixed 32bpp base graphics set not working on 16bpp videomode

This commit is contained in:
Sergii Pylypenko
2014-07-01 22:01:22 +03:00
parent 91ebce1a9c
commit 2b7b42f09e
2 changed files with 5 additions and 1 deletions

View File

@@ -453,7 +453,7 @@ static void *AllocateFont(size_t size)
static bool GetFontAAState(FontSize size)
{
/* AA is only supported for 32 bpp */
if (BlitterFactory::GetCurrentBlitter()->GetScreenDepth() != 32) return false;
if (BlitterFactory::GetCurrentBlitter()->GetScreenDepth() != 32 && BlitterFactory::GetCurrentBlitter()->GetScreenDepth() != 16) return false;
switch (size) {
default: NOT_REACHED();