mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Add Roboto font, misc icons and text things
This commit is contained in:
@@ -13,7 +13,7 @@ namespace PortabilityLayer
|
||||
, m_width(0)
|
||||
, m_height(0)
|
||||
, m_pixMap(nullptr)
|
||||
, m_pixelFormat(PixelFormat_Invalid)
|
||||
, m_pixelFormat(GpPixelFormats::kInvalid)
|
||||
, m_dirtyFlags(0)
|
||||
{
|
||||
}
|
||||
@@ -33,7 +33,7 @@ namespace PortabilityLayer
|
||||
}
|
||||
}
|
||||
|
||||
int QDPort::Init(const Rect &rect, PixelFormat pixelFormat)
|
||||
int QDPort::Init(const Rect &rect, GpPixelFormat_t pixelFormat)
|
||||
{
|
||||
m_pixMap = nullptr;
|
||||
m_pixelFormat = pixelFormat;
|
||||
@@ -57,6 +57,8 @@ namespace PortabilityLayer
|
||||
if (!pmBlock)
|
||||
return false;
|
||||
|
||||
memset(pmBlock->m_contents, 0, pixMapSize);
|
||||
|
||||
SetDirty(QDPortDirtyFlag_Size | QDPortDirtyFlag_Contents);
|
||||
|
||||
m_left = rect.left;
|
||||
@@ -103,7 +105,7 @@ namespace PortabilityLayer
|
||||
return &m_state;
|
||||
}
|
||||
|
||||
PixelFormat QDPort::GetPixelFormat() const
|
||||
GpPixelFormat_t QDPort::GetPixelFormat() const
|
||||
{
|
||||
return m_pixelFormat;
|
||||
}
|
||||
|
Reference in New Issue
Block a user