From 3c75cea5181070005cb4a3f48b5fcb872afe3e83 Mon Sep 17 00:00:00 2001 From: gambas Date: Wed, 9 Jan 2019 16:52:10 +0100 Subject: [PATCH] Font[] now assumes a default size of 10 points, so that you don't have to specify the font size when creating the Font object. [GB.SDL2] * NEW: Font[] now assumes a default size of 10 points, so that you don't have to specify the font size when creating the Font object. --- gb.sdl2/src/c_font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.sdl2/src/c_font.c b/gb.sdl2/src/c_font.c index 12af8e197..a5679ea63 100644 --- a/gb.sdl2/src/c_font.c +++ b/gb.sdl2/src/c_font.c @@ -320,7 +320,7 @@ BEGIN_METHOD(Font_get, GB_STRING font) int val; bool bold = FALSE; bool italic = FALSE; - int size = 0; + int size = 10; char *name = NULL; for (elt = strtok(desc, ","); elt; elt = strtok(NULL, ","))