mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
Build Painter & friends into LibC. Use it in the GUI test app.
This commit is contained in:
parent
bfef4afa6a
commit
b673c1a77d
16 changed files with 105 additions and 50 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "Painter.h"
|
||||
#include "Widget.h"
|
||||
#include "Font.h"
|
||||
#include "Window.h"
|
||||
#include "GraphicsBitmap.h"
|
||||
#include <AK/Assertions.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
|
||||
|
@ -115,7 +115,7 @@ void Painter::draw_text(const Rect& rect, const String& text, TextAlignment alig
|
|||
continue;
|
||||
auto* bitmap = font().glyphBitmap(ch);
|
||||
if (!bitmap) {
|
||||
printf("Font doesn't have 0x%02x ('%c')\n", ch, ch);
|
||||
dbgprintf("Font doesn't have 0x%02x ('%c')\n", ch, ch);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
int x = point.x() + i * font().glyphWidth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue