mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-07 00:30:59 +00:00
18 lines
404 B
C++
18 lines
404 B
C++
|
|
#include "CharacterBitmap.h"
|
||
|
|
|
||
|
|
CharacterBitmap::CharacterBitmap(const char* asciiData, unsigned width, unsigned height)
|
||
|
|
: m_bits(asciiData)
|
||
|
|
, m_size(width, height)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
CharacterBitmap::~CharacterBitmap()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
RetainPtr<CharacterBitmap> CharacterBitmap::createFromASCII(const char* asciiData, unsigned width, unsigned height)
|
||
|
|
{
|
||
|
|
return adopt(*new CharacterBitmap(asciiData, width, height));
|
||
|
|
}
|
||
|
|
|