From 65016499ab0d7b3a94142731d5ce2df884194a33 Mon Sep 17 00:00:00 2001 From: rozlette Date: Thu, 23 Jun 2022 21:15:12 -0500 Subject: [PATCH] Get rid of erroneous int casts --- libultraship/libultraship/SohImGuiImpl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index f3ba3dcc1..bcce3adf2 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -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() };