mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
Hook everything up to run the GUI on top of the kernel.
Okay things kinda sorta work. Both Bochs and QEMU now boot into GUI mode. There's a ton of stuff that doesn't make sense and so many things to rework. Still it's quite cool to have made it this far. :^)
This commit is contained in:
parent
8626e95509
commit
f6d2c3ed87
17 changed files with 117 additions and 23 deletions
|
@ -1,12 +1,19 @@
|
|||
#include "Font.h"
|
||||
#include "Peanut8x10.h"
|
||||
#include <AK/RetainPtr.h>
|
||||
#include <cstdio>
|
||||
|
||||
static Font* s_default_font;
|
||||
|
||||
void Font::initialize()
|
||||
{
|
||||
s_default_font = nullptr;
|
||||
}
|
||||
|
||||
Font& Font::defaultFont()
|
||||
{
|
||||
static auto* f = adopt(*new Font(Peanut8x10::glyphs, Peanut8x10::glyphWidth, Peanut8x10::glyphHeight, Peanut8x10::firstGlyph, Peanut8x10::lastGlyph)).leakRef();
|
||||
return *f;
|
||||
if (!s_default_font)
|
||||
s_default_font = adopt(*new Font(Peanut8x10::glyphs, Peanut8x10::glyphWidth, Peanut8x10::glyphHeight, Peanut8x10::firstGlyph, Peanut8x10::lastGlyph)).leakRef();
|
||||
return *s_default_font;
|
||||
}
|
||||
|
||||
Font::Font(const char* const* glyphs, byte glyphWidth, byte glyphHeight, byte firstGlyph, byte lastGlyph)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue