diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-11 23:54:34 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-11 23:59:39 +0200 |
commit | bd6172e3c77695f5662b847775424723f71f6a18 (patch) | |
tree | d29f8abac4b60badbccd91c93f36d94cd0faf00f /Widgets/Painter.cpp | |
parent | 110d01941af8bd787f6dec3417c620b5e509aae8 (diff) | |
download | serenity-bd6172e3c77695f5662b847775424723f71f6a18.zip |
Use Font in more places.
Diffstat (limited to 'Widgets/Painter.cpp')
-rw-r--r-- | Widgets/Painter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Widgets/Painter.cpp b/Widgets/Painter.cpp index 4750d17419..19b38224b8 100644 --- a/Widgets/Painter.cpp +++ b/Widgets/Painter.cpp @@ -78,12 +78,12 @@ void Painter::drawText(const Rect& rect, const String& text, TextAlignment align if (ch == ' ') continue; const char* glyph = m_font.glyph(ch); - if (!ch) { + if (!glyph) { printf("Font doesn't have 0x%02x ('%c')\n", ch, ch); ASSERT_NOT_REACHED(); } int x = point.x() + i * m_font.glyphWidth(); - for (unsigned j = 0; j < m_font.glyphWidth(); ++j) { + for (int j = 0; j < m_font.glyphWidth(); ++j) { char fc = glyph[row * m_font.glyphWidth() + j]; if (fc == '#') bits[x + j] = color.value(); |