Add a display server and graphical user interface #38

Merged
apio merged 103 commits from display-server into main 2023-09-20 18:49:21 +00:00
Showing only changes of commit 98aaf1f7ff - Show all commits

View File

@ -101,7 +101,7 @@ namespace ui
{
u32 line = offset;
int mask = 1 << (m_psf_header.width - 1);
for (int x = 0; x < m_psf_header.width; x++)
for (int x = 0; x < width; x++)
{
if (*((u32*)glyph) & mask) *(u32*)(canvas.ptr + line) = color.raw;
mask >>= 1;