Fix RichTextTest in CI (disable anti-aliasing on line rendering so image comparison does not fail due to differences on NVIDIA and Mesa renderers).

This commit is contained in:
Martín Lucas Golini
2026-02-08 14:15:50 -03:00
parent e0bf0a23e5
commit 5140dbabdb
2 changed files with 4 additions and 2 deletions

View File

@@ -202,11 +202,13 @@ UTEST( RichText, RichTextTest ) {
p.setColor( Color::Black );
Float line1X = richText.getPosition().x + boxWidth;
p.drawLine( { { line1X, 0 }, { line1X, (Float)win->getHeight() } } );
p.drawPixelPerfectLineRectangle(
{ line1X, 0, line1X + p.getLineWidth(), (Float)win->getHeight() } );
Float line2X =
richText2.getPosition().x + static_cast<Float>( std::ceil( win->getWidth() * 0.15 ) );
p.drawLine( { { line2X, 0 }, { line2X, (Float)win->getHeight() } } );
p.drawPixelPerfectLineRectangle(
{ line2X, 0, line2X + p.getLineWidth(), (Float)win->getHeight() } );
richText.draw();
richText2.draw();