diff --git a/main.cpp b/main.cpp index 3e66eb8..8d049a0 100644 --- a/main.cpp +++ b/main.cpp @@ -134,9 +134,9 @@ int main(int argc, char ** argv) { for (unsigned int y = 0; y < FreeImage_GetHeight(output_bitmap); y++) { bits = FreeImage_GetScanLine(output_bitmap, y); for (unsigned int x = 0; x < FreeImage_GetWidth(output_bitmap); x++) { - bits[FI_RGBA_RED] = static_cast(pow(image[g_h - 1 - y][x].r, 1.0f / 2.2f) * 255.0f); - bits[FI_RGBA_GREEN] = static_cast(pow(image[g_h - 1 - y][x].g, 1.0f / 2.2f) * 255.0f); - bits[FI_RGBA_BLUE] = static_cast(pow(image[g_h - 1 - y][x].b, 1.0f / 2.2f) * 255.0f); + bits[FI_RGBA_RED] = static_cast(pow(image[g_h - 1 - y][x].r, 1.0f / 2.2f) * 255.0f); + bits[FI_RGBA_GREEN] = static_cast(pow(image[g_h - 1 - y][x].g, 1.0f / 2.2f) * 255.0f); + bits[FI_RGBA_BLUE] = static_cast(pow(image[g_h - 1 - y][x].b, 1.0f / 2.2f) * 255.0f); bits += bpp; } } diff --git a/output.png b/output.png index 13cba99..1e689f9 100644 Binary files a/output.png and b/output.png differ