<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Cairo backend does not return GetPixel() correctly"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127992">127992</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Cairo backend does not return GetPixel() correctly
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>graphics stack
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chris.sherlock79@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
On systems that use Cairo as the VCL backend, the following occurs:
VirtualDevice aRenderContext;
aRenderContext.DrawPixel(Point(8, 1), COL_GREEN);
aRenderContext.GetPixel(Point(8, 1)));
Last line returns 000000ff! This is wrong
<a href="https://github.com/chrissherlock/libreoffice-experimental/blob/pixelbug/vcl/qa/cppunit/outdev/PixelTest.cxx">https://github.com/chrissherlock/libreoffice-experimental/blob/pixelbug/vcl/qa/cppunit/outdev/PixelTest.cxx</a>
Steps to Reproduce:
1. Cherry pick my commit on github:
<a href="https://github.com/chrissherlock/libreoffice-experimental/commit/515c1b3e3ddf1a06028982b5741350dfeedc010f">https://github.com/chrissherlock/libreoffice-experimental/commit/515c1b3e3ddf1a06028982b5741350dfeedc010f</a>
2. Run make CppunitTest_PixelTest
Actual Results:
/home/chris/repos/libreoffice-latest/vcl/qa/cppunit/outdev/PixelTest.cxx:35:PixelTest::testPixel
equality assertion failed
- Expected: c[00800000]
- Actual : c[000000ff]
PixelTest::testPixel finished in: 21ms
PixelTest.cxx:35:Assertion
Test name: PixelTest::testPixel
equality assertion failed
- Expected: c[00800000]
- Actual : c[000000ff]
Failures !!!
Run: 1 Failure total: 1 Failures: 1 Errors: 0
Error: a unit test failed, please do one of:
make CppunitTest_PixelTest CPPUNITTRACE="gdb --args"
# for interactive debugging on Linux
make CppunitTest_PixelTest VALGRIND=memcheck
# for memory checking
make CppunitTest_PixelTest DEBUGCPPUNIT=TRUE
# for exception catching
Expected Results:
Should be returning 00800000 (COL_GREEN).
Reproducible: Always
User Profile Reset: No
Additional Info:</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>