1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

Add a CBitmap class. The C is for Courage.

This commit is contained in:
Andreas Kling 2018-10-12 12:49:45 +02:00
parent e23ac56017
commit c7463aad11
Notes: sideshowbarker 2024-07-19 18:50:11 +09:00
8 changed files with 63 additions and 18 deletions

17
Widgets/CBitmap.cpp Normal file
View file

@ -0,0 +1,17 @@
#include "CBitmap.h"
CBitmap::CBitmap(const char* asciiData, unsigned width, unsigned height)
: m_bits(asciiData)
, m_size(width, height)
{
}
CBitmap::~CBitmap()
{
}
RetainPtr<CBitmap> CBitmap::createFromASCII(const char* asciiData, unsigned width, unsigned height)
{
return adopt(*new CBitmap(asciiData, width, height));
}