mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 21:03:42 -07:00
Get rid of erroneous int casts
This commit is contained in:
parent
efd4b26f3d
commit
65016499ab
1 changed files with 4 additions and 4 deletions
|
@ -354,10 +354,10 @@ namespace SohImGui {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t pixel = 0; pixel < texBuffer.size() / 4; pixel++) {
|
for (size_t pixel = 0; pixel < texBuffer.size() / 4; pixel++) {
|
||||||
texBuffer[pixel * 4 + 0] *= (uint8_t)tint.x;
|
texBuffer[pixel * 4 + 0] *= tint.x;
|
||||||
texBuffer[pixel * 4 + 1] *= (uint8_t)tint.y;
|
texBuffer[pixel * 4 + 1] *= tint.y;
|
||||||
texBuffer[pixel * 4 + 2] *= (uint8_t)tint.z;
|
texBuffer[pixel * 4 + 2] *= tint.z;
|
||||||
texBuffer[pixel * 4 + 3] *= (uint8_t)tint.w;
|
texBuffer[pixel * 4 + 3] *= tint.w;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto asset = new GameAsset{ api->new_texture() };
|
const auto asset = new GameAsset{ api->new_texture() };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue