From 0a912b7f119debef52ae57af0858189958edd2a2 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 8 Sep 2020 04:36:45 +0100 Subject: [PATCH] Change some type from int to size_t --- src/Font.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Font.cpp b/src/Font.cpp index 6a33b96c..b34ddfa7 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -29,16 +29,16 @@ typedef struct Glyph { 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 @@ void DrawText(FontObject *font_object, RenderBackend_Surface *surface, int x, in 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);