summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_fonts.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_fonts.c')
-rw-r--r--apps/gui/skin_engine/skin_fonts.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_fonts.c b/apps/gui/skin_engine/skin_fonts.c
index 2db5ef2ec2..f446a9948b 100644
--- a/apps/gui/skin_engine/skin_fonts.c
+++ b/apps/gui/skin_engine/skin_fonts.c
@@ -29,8 +29,6 @@
29#include "font.h" 29#include "font.h"
30#include "skin_buffer.h" 30#include "skin_buffer.h"
31#include "skin_fonts.h" 31#include "skin_fonts.h"
32#define FONT_SIZE 10000
33
34 32
35static struct skin_font_info { 33static struct skin_font_info {
36 struct font font; 34 struct font font;
@@ -90,7 +88,7 @@ int skin_font_load(char* font_name)
90 pf = &font->font; 88 pf = &font->font;
91 if (!font->buffer) 89 if (!font->buffer)
92 { 90 {
93 pf->buffer_start = skin_buffer_alloc(FONT_SIZE); 91 pf->buffer_start = skin_buffer_alloc(SKIN_FONT_SIZE);
94 if (!pf->buffer_start) 92 if (!pf->buffer_start)
95 return -1; 93 return -1;
96 font->buffer = pf->buffer_start; 94 font->buffer = pf->buffer_start;
@@ -99,7 +97,7 @@ int skin_font_load(char* font_name)
99 { 97 {
100 pf->buffer_start = font->buffer; 98 pf->buffer_start = font->buffer;
101 } 99 }
102 pf->buffer_size = FONT_SIZE; 100 pf->buffer_size = SKIN_FONT_SIZE;
103 101
104 snprintf(filename, MAX_PATH, FONT_DIR "/%s.fnt", font_name); 102 snprintf(filename, MAX_PATH, FONT_DIR "/%s.fnt", font_name);
105 strcpy(font->name, font_name); 103 strcpy(font->name, font_name);