Kaydet (Commit) ec8bc265 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

tdf#96257: Silly work-around to produce same result on OpenGL and non-OpenGL

For likely separate reasons, neither the non-OpenGL nor the OpenGL
code path produces what we actually want here (a line drawn in
'invert' mode if white is used, as happens on X11). In the non-OpenGL
case we get a black line, in the OpenGL case a white one. So let's use
grey and at least get the same effect in both cases.

Change-Id: Ifb587c6b46adb05e334a18add74352663cf7db9e
üst c56e0858
...@@ -107,7 +107,16 @@ namespace sdr ...@@ -107,7 +107,16 @@ namespace sdr
if(bInvert) if(bInvert)
{ {
// force color to white for invert to get a full invert // force color to white for invert to get a full invert
#ifdef WNT
// tdf#96257: For likely separate reasons, neither the non-OpenGL nor the OpenGL
// code path produces what we actually want here (a line drawn in 'invert' mode
// if white is used, as happens on X11). In the non-OpenGL case we get a black
// line, in the OpenGL case a white one. So let's use grey and at least get the
// same on both.
aRGBColor = basegfx::BColor(0.5, 0.5, 0.5);
#else
aRGBColor = basegfx::BColor(1.0, 1.0, 1.0); aRGBColor = basegfx::BColor(1.0, 1.0, 1.0);
#endif
} }
for(sal_uInt32 a(0);a < nCount; a++) for(sal_uInt32 a(0);a < nCount; a++)
......
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