mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Add Roboto font, misc icons and text things
This commit is contained in:
@@ -54,18 +54,18 @@ namespace PortabilityLayer
|
||||
|
||||
int QDManagerImpl::NewGWorld(CGraf **gw, int depth, const Rect &bounds, ColorTable **colorTable, GDevice **device, int flags)
|
||||
{
|
||||
PixelFormat pixelFormat;
|
||||
GpPixelFormat_t pixelFormat;
|
||||
|
||||
switch (depth)
|
||||
{
|
||||
case 8:
|
||||
pixelFormat = (colorTable == nullptr) ? PixelFormat_8BitStandard : PixelFormat_8BitCustom;
|
||||
pixelFormat = (colorTable == nullptr) ? GpPixelFormats::k8BitStandard : GpPixelFormats::k8BitCustom;
|
||||
break;
|
||||
case 16:
|
||||
pixelFormat = PixelFormat_RGB555;
|
||||
pixelFormat = GpPixelFormats::kRGB555;
|
||||
break;
|
||||
case 32:
|
||||
pixelFormat = PixelFormat_RGB32;
|
||||
pixelFormat = GpPixelFormats::kRGB32;
|
||||
break;
|
||||
default:
|
||||
return genericErr;
|
||||
|
||||
Reference in New Issue
Block a user