Fixed a refactoring error

This commit is contained in:
Matthias Koefferlein 2022-06-01 00:08:02 +02:00
parent b95027a21b
commit 254a44a133
1 changed files with 6 additions and 6 deletions

View File

@ -1673,11 +1673,11 @@ Object::read_file ()
const tl::color_t *dd = d + img.width (); const tl::color_t *dd = d + img.width ();
while (d != dd) { while (d != dd) {
tl::color_t rgb = *d++; tl::color_t rgb = *d++;
*red++ = lay::red (rgb); *red++ = tl::red (rgb);
*green++ = lay::green (rgb); *green++ = tl::green (rgb);
*blue++ = lay::blue (rgb); *blue++ = tl::blue (rgb);
if (msk) { if (msk) {
*msk++ = lay::alpha (rgb) > 128; *msk++ = tl::alpha (rgb) > 128;
} }
} }
} }
@ -1692,9 +1692,9 @@ Object::read_file ()
const tl::color_t *dd = d + img.width (); const tl::color_t *dd = d + img.width ();
while (d != dd) { while (d != dd) {
tl::color_t rgb = *d++; tl::color_t rgb = *d++;
*mono++ = lay::green (rgb); *mono++ = tl::green (rgb);
if (msk) { if (msk) {
*msk++ = lay::alpha (rgb) > 128; *msk++ = tl::alpha (rgb) > 128;
} }
} }
} }