mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-15 19:21:38 +00:00
17 lines
407 B
C++
17 lines
407 B
C++
#include "CharacterBitmap.h"
|
|
|
|
CharacterBitmap::CharacterBitmap(const char* ascii_data, unsigned width, unsigned height)
|
|
: m_bits(ascii_data)
|
|
, m_size(width, height)
|
|
{
|
|
}
|
|
|
|
CharacterBitmap::~CharacterBitmap()
|
|
{
|
|
}
|
|
|
|
Retained<CharacterBitmap> CharacterBitmap::create_from_ascii(const char* asciiData, unsigned width, unsigned height)
|
|
{
|
|
return adopt(*new CharacterBitmap(asciiData, width, height));
|
|
}
|
|
|