shithub: cstory

Download patch

ref: a767c16d830f79a5603b25470101e571b1ed399a
parent: f82a53d336814c04157d8c63c7f6f7cfb0176411
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Feb 9 13:55:41 EST 2020

Un-un-const a few things

--- a/src/Backends/Rendering/Software.cpp
+++ b/src/Backends/Rendering/Software.cpp
@@ -351,11 +351,11 @@
 	{
 		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;
 
--