From 474d76e645ef5d78279dd41d7e435fd4370b4271 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Fri, 7 Jun 2019 04:12:34 +0200 Subject: [PATCH] Fix that comment ;). --- src/calibre/utils/imageops/ordered_dither.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/imageops/ordered_dither.cpp b/src/calibre/utils/imageops/ordered_dither.cpp index 52db0fde3d..c03a65087b 100644 --- a/src/calibre/utils/imageops/ordered_dither.cpp +++ b/src/calibre/utils/imageops/ordered_dither.cpp @@ -74,7 +74,7 @@ static uint8_t // c = ClampToQuantum((l+(t >= map[(x % mw) + mw * (y % mh)])) * QuantumRange / (L-1)); uint32_t q = ((l + (t >= threshold_map_o8x8[(x & 7U) + 8U * (y & 7U)])) * 17); // NOTE: We're doing unsigned maths, so, clamping is basically MIN(q, UINT8_MAX) ;). - // The only overflow we should ever catch should be for a few black (v = 0xFF) input pixels + // The only overflow we should ever catch should be for a few white (v = 0xFF) input pixels // that get shifted to the next step (i.e., q = 272 (0xFF + 17)). return (q > UINT8_MAX ? UINT8_MAX : static_cast(q)); }