summaryrefslogtreecommitdiff
path: root/vcl/win/source/gdi/winlayout.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-08-19 12:37:56 +0300
committerTor Lillqvist <tml@collabora.com>2015-08-19 12:42:27 +0300
commit2d59ef47560ef06ecaef008ac13e2fea83153516 (patch)
tree137918b7180c4bd986deec1f5dc46edab6181b1f /vcl/win/source/gdi/winlayout.cxx
parent8894f3cfa0c9d39198a1ec18e3f46e40f76a955b (diff)
Make the pixel greylevel debug output work as intended
Change-Id: I29cb771eb059f560b7cbd449257ffda581b40f11
Diffstat (limited to 'vcl/win/source/gdi/winlayout.cxx')
-rw-r--r--vcl/win/source/gdi/winlayout.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index 7f4c4a4f5ed7..540a76bd7979 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)