From a767c16d830f79a5603b25470101e571b1ed399a Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 9 Feb 2020 18:55:41 +0000 Subject: [PATCH] Un-un-const a few things --- src/Backends/Rendering/Software.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Backends/Rendering/Software.cpp b/src/Backends/Rendering/Software.cpp index 6b688a5f..17666c27 100644 --- a/src/Backends/Rendering/Software.cpp +++ b/src/Backends/Rendering/Software.cpp @@ -351,11 +351,11 @@ void Backend_DrawGlyph(Backend_Glyph *glyph, long x, long y) { for (unsigned int ix = MAX(-x, 0); x + ix < MIN(x + glyph->width, glyph_destination_surface->width); ++ix) { - unsigned char alpha_int = glyph->pixels[iy * glyph->width + ix]; + const unsigned char alpha_int = glyph->pixels[iy * glyph->width + ix]; if (alpha_int != 0) { - float alpha = alpha_int / 255.0f; + const float alpha = alpha_int / 255.0f; unsigned char *bitmap_pixel = glyph_destination_surface->pixels + (y + iy) * glyph_destination_surface->pitch + (x + ix) * 3;