Add initialization to variable in ren_draw_text
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user