Cosmetic: "width * height"
Change-Id: I567c0d95355160a9f6721f949b38e2b8b6270b7a
This commit is contained in:
parent
1153f888c9
commit
3ef79fefec
@ -60,7 +60,7 @@ static int DecodeAlpha(const uint8_t* data, size_t data_size,
|
||||
}
|
||||
|
||||
if (method == ALPHA_NO_COMPRESSION) {
|
||||
const size_t alpha_decoded_size = height * width;
|
||||
const size_t alpha_decoded_size = width * height;
|
||||
ok = (alpha_data_size >= alpha_decoded_size);
|
||||
if (ok) memcpy(output, alpha_data, alpha_decoded_size);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user