From 9e0b24fa5b4a0547762c158a4190abf93495028b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 31 Jul 2019 10:31:01 +0200 Subject: [PATCH] DebugTools: doc++, minor cleanup. --- src/Magnum/DebugTools/CompareImage.cpp | 3 ++- src/Magnum/DebugTools/CompareImage.h | 2 +- src/Magnum/DebugTools/Test/CompareImageTest.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Magnum/DebugTools/CompareImage.cpp b/src/Magnum/DebugTools/CompareImage.cpp index ab3d634f6..4ab899121 100644 --- a/src/Magnum/DebugTools/CompareImage.cpp +++ b/src/Magnum/DebugTools/CompareImage.cpp @@ -186,7 +186,8 @@ void printDeltaImage(Debug& out, Containers::ArrayView deltas, cons out << " |"; for(std::int_fast32_t x = 0; x != blockCount.x(); ++x) { - /* Going bottom-up so we don't flip the image upside down when printing */ + /* Going bottom-up so we don't flip the image upside down when + printing */ const Vector2i offset = Vector2i{Int(x), blockCount.y() - Int(y) - 1}*pixelsPerBlock; const Vector2i blockSize = Math::min(size - offset, Vector2i{pixelsPerBlock}); diff --git a/src/Magnum/DebugTools/CompareImage.h b/src/Magnum/DebugTools/CompareImage.h index 218ac06b7..d030ecee8 100644 --- a/src/Magnum/DebugTools/CompareImage.h +++ b/src/Magnum/DebugTools/CompareImage.h @@ -151,7 +151,7 @@ namespace Magnum { namespace DebugTools { To be used with @ref Corrade::TestSuite. -@note This class is available only if Magnum is compiled with `WITH_TRADE` +@note This class is available only if Magnum is compiled with `WITH_DEBUGTOOLS` enabled (done by default). See @ref building-features for more information. Basic use is really simple: diff --git a/src/Magnum/DebugTools/Test/CompareImageTest.cpp b/src/Magnum/DebugTools/Test/CompareImageTest.cpp index 74e77e660..1f152372c 100644 --- a/src/Magnum/DebugTools/Test/CompareImageTest.cpp +++ b/src/Magnum/DebugTools/Test/CompareImageTest.cpp @@ -177,8 +177,8 @@ CompareImageTest::CompareImageTest() { } const Float ActualRedData[] = { - 0.3f, 1.0f, 0.9f, - 0.9f, 0.6f, 0.2f, + 0.3f, 1.0f, 0.9f, + 0.9f, 0.6f, 0.2f, -0.1f, 1.0f, 0.0f };