Skip to content

Commit ca2553a

Browse files
committed
Add static to the font code in emu
1 parent e33da01 commit ca2553a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/target/emu_devof12e/tw8816.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void LCD_DrawPixel(unsigned int color)
8080
/*
8181
* Since we have a text based screen we need some of the text writing functions here
8282
*/
83-
u8 get_char_range(u32 c, u32 *begin, u32 *end)
83+
static u8 get_char_range(u32 c, u32 *begin, u32 *end)
8484
{
8585
u32 offset = 0;
8686
u32 pos = 5;
@@ -102,7 +102,7 @@ u8 get_char_range(u32 c, u32 *begin, u32 *end)
102102
return 1;
103103
}
104104

105-
const u8 *char_offset(u32 c, u8 *width)
105+
static const u8 *char_offset(u32 c, u8 *width)
106106
{
107107
u32 begin;
108108
u32 end;
@@ -113,11 +113,11 @@ const u8 *char_offset(u32 c, u8 *width)
113113
return default_font.data + begin;
114114
}
115115

116-
void close_font()
116+
static void close_font()
117117
{
118118
}
119119

120-
void open_font(struct font_def_rom *font, const u8 *data, int fontidx)
120+
static void open_font(struct font_def_rom *font, const u8 *data, int fontidx)
121121
{
122122
font->height = *data;
123123
font->zoom = *data / CHAR_HEIGHT;

src/target/emu_devof7/lcd.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void LCD_Clear(unsigned int color) {
7373
/*
7474
* Since we have a text based screen we need some of the text writing functions here
7575
*/
76-
u8 get_char_range(u32 c, u32 *begin, u32 *end)
76+
static u8 get_char_range(u32 c, u32 *begin, u32 *end)
7777
{
7878
u32 offset = 0;
7979
u32 pos = 5;
@@ -95,7 +95,7 @@ u8 get_char_range(u32 c, u32 *begin, u32 *end)
9595
return 1;
9696
}
9797

98-
const u8 *char_offset(u32 c, u8 *width)
98+
static const u8 *char_offset(u32 c, u8 *width)
9999
{
100100
u32 begin;
101101
u32 end;
@@ -148,11 +148,11 @@ void LCD_PrintCharXY(unsigned int x, unsigned int y, u32 c)
148148
LCD_DrawStop();
149149
}
150150

151-
void close_font()
151+
static void close_font()
152152
{
153153
}
154154

155-
void open_font(struct font_def *font, const u8 *data, int fontidx)
155+
static void open_font(struct font_def *font, const u8 *data, int fontidx)
156156
{
157157
font->height = *data;
158158
font->zoom = *data / CHAR_HEIGHT;

0 commit comments

Comments
 (0)