mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-08 12:28:10 -05:00
Get rid of erroneous int casts
This commit is contained in:
parent
efd4b26f3d
commit
65016499ab
@ -354,10 +354,10 @@ namespace SohImGui {
|
||||
}
|
||||
|
||||
for (size_t pixel = 0; pixel < texBuffer.size() / 4; pixel++) {
|
||||
texBuffer[pixel * 4 + 0] *= (uint8_t)tint.x;
|
||||
texBuffer[pixel * 4 + 1] *= (uint8_t)tint.y;
|
||||
texBuffer[pixel * 4 + 2] *= (uint8_t)tint.z;
|
||||
texBuffer[pixel * 4 + 3] *= (uint8_t)tint.w;
|
||||
texBuffer[pixel * 4 + 0] *= tint.x;
|
||||
texBuffer[pixel * 4 + 1] *= tint.y;
|
||||
texBuffer[pixel * 4 + 2] *= tint.z;
|
||||
texBuffer[pixel * 4 + 3] *= tint.w;
|
||||
}
|
||||
|
||||
const auto asset = new GameAsset{ api->new_texture() };
|
||||
|
Loading…
Reference in New Issue
Block a user