Kaydet (Commit) 90a08d46 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Andras Timar

Make the pixel greylevel debug output work as intended

Change-Id: I29cb771eb059f560b7cbd449257ffda581b40f11
Signed-off-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst fcb15fae
...@@ -114,7 +114,10 @@ char ColorFor(COLORREF aColor) ...@@ -114,7 +114,10 @@ char ColorFor(COLORREF aColor)
{ {
if (aColor == RGB(0xFF, 0xFF, 0xFF)) if (aColor == RGB(0xFF, 0xFF, 0xFF))
return ' '; 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) OUString DumpGlyphBitmap(OpenGLGlyphCacheChunk& rChunk, HDC hDC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment