From 19b2b1dde25885ada99deefe79266c2e22376e85 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 22 Sep 2017 08:47:14 -0400 Subject: new font; dialog box word wrap... finally --- src/font.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/font.cpp') diff --git a/src/font.cpp b/src/font.cpp index af49d2a..0b425f7 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -41,9 +41,10 @@ void FontSystem::setFontSize(int size) // convert red-on-black to RGBA auto& g = ftFace->glyph; - std::vector buf (g->bitmap.width * g->bitmap.rows, 0xFFFFFFFF); + std::vector buf (g->bitmap.width * g->bitmap.rows, 0x00FFFFFF); for (auto j = buf.size(); j--;) - buf[j] ^= !g->bitmap.buffer[j] ? buf[j] : 0; + buf[j] |= g->bitmap.buffer[j] << 24; +// buf[j] ^= !g->bitmap.buffer[j] ? buf[j] : 0; d.wh.x = g->bitmap.width; d.wh.y = g->bitmap.rows; -- cgit v1.2.3