vcl/win/source/gdi/winlayout.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 2d59ef47560ef06ecaef008ac13e2fea83153516 Author: Tor Lillqvist <t...@collabora.com> Date: Wed Aug 19 12:37:56 2015 +0300 Make the pixel greylevel debug output work as intended Change-Id: I29cb771eb059f560b7cbd449257ffda581b40f11 diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 7f4c4a4..540a76b 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -114,7 +114,10 @@ char ColorFor(COLORREF aColor) { if (aColor == RGB(0xFF, 0xFF, 0xFF)) return ' '; - return '0' + 10*((GetRValue(aColor) + GetGValue(aColor) + GetBValue(aColor)) / (0xFF*3)); + else if (aColor == RGB(0x00, 0x00, 0x00)) + return 'X'; + + return '0' + (10*(GetRValue(aColor) + GetGValue(aColor) + GetBValue(aColor))) / (0xFF*3); } OUString DumpGlyphBitmap(OpenGLGlyphCacheChunk& rChunk, HDC hDC) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits