ref: 0a912b7f119debef52ae57af0858189958edd2a2
parent: f5828667a69881eca12e29c48c5f6a4186056dba
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Sep 8 00:36:45 EDT 2020
Change some type from int to size_t
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -29,16 +29,16 @@
{
unsigned long unicode_value;
- int x;
- int y;
+ size_t x;
+ size_t y;
- int width;
- int height;
+ size_t width;
+ size_t height;
- int x_offset;
- int y_offset;
+ size_t x_offset;
+ size_t y_offset;
- int x_advance;
+ size_t x_advance;
struct Glyph *next;
} Glyph;
@@ -1142,7 +1142,7 @@
RenderBackend_PrepareToDrawGlyphs(font_object->atlas, surface, colour_channels);
- unsigned int pen_x = 0;
+ size_t pen_x = 0;
const unsigned char *string_pointer = (unsigned char*)string;
const unsigned char *string_end = (unsigned char*)string + strlen(string);