Remove sqrt() :|

This commit is contained in:
prokrypt 2023-08-18 19:14:48 -07:00
parent d29aba278d
commit 4b943867b6

View File

@ -213,14 +213,17 @@ static size_t sharp_memory_gray8_to_mono_tagged_dither(u8 *buf, int width, int h
if (g_param_dither == 1) {
*dM=ditherMatrix1;
msize=2;
} else if (g_param_dither == 2) {
*dM=ditherMatrix2;
msize=2;
} else if (g_param_dither == 3) {
*dM=ditherMatrix3;
msize=4;
} else {
*dM=ditherMatrix4;
msize=4;
}
msize=sqrt(sizeof(dM));
// Iterate over lines from [0, height)
for (line = 0; line < height; line++) {