diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-09-22 08:47:14 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-09-22 08:47:14 -0400 |
commit | 19b2b1dde25885ada99deefe79266c2e22376e85 (patch) | |
tree | a5bf9c56f468663b78ce109d89b853637236574c /src/font.cpp | |
parent | 8720f1f253b55fa5233626dd854671a5925d65de (diff) |
new font; dialog box word wrap... finally
Diffstat (limited to 'src/font.cpp')
-rw-r--r-- | src/font.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<uint32_t> buf (g->bitmap.width * g->bitmap.rows, 0xFFFFFFFF); + std::vector<uint32_t> 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; |