Change some type from int to size_t
This commit is contained in:
parent
f5828667a6
commit
0a912b7f11
1 changed files with 8 additions and 8 deletions
16
src/Font.cpp
16
src/Font.cpp
|
@ -29,16 +29,16 @@ typedef struct Glyph
|
||||||
{
|
{
|
||||||
unsigned long unicode_value;
|
unsigned long unicode_value;
|
||||||
|
|
||||||
int x;
|
size_t x;
|
||||||
int y;
|
size_t y;
|
||||||
|
|
||||||
int width;
|
size_t width;
|
||||||
int height;
|
size_t height;
|
||||||
|
|
||||||
int x_offset;
|
size_t x_offset;
|
||||||
int y_offset;
|
size_t y_offset;
|
||||||
|
|
||||||
int x_advance;
|
size_t x_advance;
|
||||||
|
|
||||||
struct Glyph *next;
|
struct Glyph *next;
|
||||||
} Glyph;
|
} Glyph;
|
||||||
|
@ -1142,7 +1142,7 @@ void DrawText(FontObject *font_object, RenderBackend_Surface *surface, int x, in
|
||||||
|
|
||||||
RenderBackend_PrepareToDrawGlyphs(font_object->atlas, surface, colour_channels);
|
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_pointer = (unsigned char*)string;
|
||||||
const unsigned char *string_end = (unsigned char*)string + strlen(string);
|
const unsigned char *string_end = (unsigned char*)string + strlen(string);
|
||||||
|
|
Loading…
Add table
Reference in a new issue