GRAPHICS: Allow VectorRenderer and ThemeEngine to init with 4BPP
This commit is contained in:
parent
f545a2f08f
commit
1f1d35bd3d
2 changed files with 15 additions and 5 deletions
|
@ -283,10 +283,16 @@ VectorRenderer *createRenderer(int mode) {
|
|||
PixelFormat format = g_system->getOverlayFormat();
|
||||
switch (mode) {
|
||||
case GUI::ThemeEngine::kGfxStandard:
|
||||
return new VectorRendererSpec<OverlayColor>(format);
|
||||
if (g_system->getOverlayFormat().bytesPerPixel == 4)
|
||||
return new VectorRendererSpec<uint32>(format);
|
||||
else if (g_system->getOverlayFormat().bytesPerPixel == 2)
|
||||
return new VectorRendererSpec<uint16>(format);
|
||||
#ifndef DISABLE_FANCY_THEMES
|
||||
case GUI::ThemeEngine::kGfxAntialias:
|
||||
return new VectorRendererAA<OverlayColor>(format);
|
||||
if (g_system->getOverlayFormat().bytesPerPixel == 4)
|
||||
return new VectorRendererAA<uint32>(format);
|
||||
else if (g_system->getOverlayFormat().bytesPerPixel == 2)
|
||||
return new VectorRendererAA<uint16>(format);
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue