mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Add FreeType, progress to title screen
This commit is contained in:
@@ -74,14 +74,14 @@ namespace PortabilityLayer
|
||||
if (depth != 8)
|
||||
return genericErr;
|
||||
|
||||
void *grafStorage = MemoryManager::GetInstance()->Alloc(sizeof(CGrafImpl));
|
||||
void *grafStorage = MemoryManager::GetInstance()->Alloc(sizeof(CGraf));
|
||||
if (!grafStorage)
|
||||
return mFulErr;
|
||||
|
||||
if (!bounds.IsValid())
|
||||
return genericErr;
|
||||
|
||||
CGrafImpl *graf = new (grafStorage) CGrafImpl();
|
||||
CGraf *graf = new (grafStorage) CGraf();
|
||||
int initError = graf->Init(bounds, pixelFormat);
|
||||
if (initError)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user