Un-un-const a few things
This commit is contained in:
parent
f82a53d336
commit
a767c16d83
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
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)
|
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;
|
unsigned char *bitmap_pixel = glyph_destination_surface->pixels + (y + iy) * glyph_destination_surface->pitch + (x + ix) * 3;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue