mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
1c0669f010
Instead of LibGUI and WindowServer building their own copies of the drawing and graphics code, let's it in a separate LibDraw library. This avoids building the code twice, and will encourage better separation of concerns. :^)
16 lines
411 B
C++
16 lines
411 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()
|
|
{
|
|
}
|
|
|
|
NonnullRefPtr<CharacterBitmap> CharacterBitmap::create_from_ascii(const char* asciiData, unsigned width, unsigned height)
|
|
{
|
|
return adopt(*new CharacterBitmap(asciiData, width, height));
|
|
}
|