Add initialization to variable in ren_draw_text

This commit is contained in:
Guldoman
2022-11-27 00:45:57 +01:00
parent 0373d29f99
commit 9f917052ad
+1 -1
View File
@@ -386,7 +386,7 @@ float ren_draw_text(RenFont **fonts, const char *text, float x, int y, RenColor
uint8_t* destination_pixels = surface->pixels; uint8_t* destination_pixels = surface->pixels;
int clip_end_x = clip.x + clip.width, clip_end_y = clip.y + clip.height; int clip_end_x = clip.x + clip.width, clip_end_y = clip.y + clip.height;
RenFont* last; RenFont* last = NULL;
float last_pen_x = x; float last_pen_x = x;
bool underline = fonts[0]->style & FONT_STYLE_UNDERLINE; bool underline = fonts[0]->style & FONT_STYLE_UNDERLINE;
bool strikethrough = fonts[0]->style & FONT_STYLE_STRIKETHROUGH; bool strikethrough = fonts[0]->style & FONT_STYLE_STRIKETHROUGH;