diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2025-01-29 11:26:24 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2025-01-29 13:43:50 +0100 |
commit | b18a03d80eac0b16f8a04ca0e9d3851676d7dd1c (patch) | |
tree | 7c13454852300a6c59c8651af7d035245d2e7f9a /drawinglayer | |
parent | 7f8ee2ccc0a1059759706ecbb1a7d592084dedc9 (diff) |
SAL_INFO the result of checkCoordinateLimitWorkaroundNeededForUsedCairo
Change-Id: I88a021042ccf4e69d550a15eb9555c8f36437c8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180887
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/cairopixelprocessor2d.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx b/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx index df074f4ca790..d61f73e74dd2 100644 --- a/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx @@ -875,13 +875,19 @@ bool checkCoordinateLimitWorkaroundNeededForUsedCairo() // setup surface and render context cairo_surface_t* pSurface(cairo_image_surface_create(CAIRO_FORMAT_RGB24, 8, 8)); if (!pSurface) - // got no surface -> be pessimistic + { + SAL_INFO( + "drawinglayer", + "checkCoordinateLimitWorkaroundNeededForUsedCairo: got no surface -> be pessimistic"); return true; + } cairo_t* pRender(cairo_create(pSurface)); if (!pRender) { - // got no render -> be pessimistic + SAL_INFO( + "drawinglayer", + "checkCoordinateLimitWorkaroundNeededForUsedCairo: got no render -> be pessimistic"); cairo_surface_destroy(pSurface); return true; } @@ -932,7 +938,9 @@ bool checkCoordinateLimitWorkaroundNeededForUsedCairo() // if cairo works or has no 24.8 internal format all pixels // have to be red (255), thus workaround is needed if != - return aRedAt_1_1 != aRedAt_6_6; + auto const needed = aRedAt_1_1 != aRedAt_6_6; + SAL_INFO("drawinglayer", "checkCoordinateLimitWorkaroundNeededForUsedCairo: " << needed); + return needed; } } |