Minor syntax cleanup. Changed parameter of select_drawable_font() to const
This commit is contained in:
parent
1c106dbfd0
commit
02627e7609
5
bar.c
5
bar.c
|
@ -298,7 +298,7 @@ area_add (char *str, const char *optend, char **end, monitor_t *mon, const int x
|
||||||
|
|
||||||
/* returns NULL if character cannot be printed */
|
/* returns NULL if character cannot be printed */
|
||||||
font_t *
|
font_t *
|
||||||
select_drawable_font (uint16_t c)
|
select_drawable_font (const uint16_t c)
|
||||||
{
|
{
|
||||||
/* if the end is reached without finding an apropriate font, return NULL.
|
/* if the end is reached without finding an apropriate font, return NULL.
|
||||||
* If the font can draw the character, return it.
|
* If the font can draw the character, return it.
|
||||||
|
@ -839,9 +839,8 @@ init (void)
|
||||||
if (!font_list[0])
|
if (!font_list[0])
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
for (uint16_t i = 0; i < FONT_CACHE_SIZE; i++) {
|
for (uint16_t i = 0; i < FONT_CACHE_SIZE; i++)
|
||||||
font_cache[i] = select_drawable_font(i);
|
font_cache[i] = select_drawable_font(i);
|
||||||
}
|
|
||||||
|
|
||||||
/* To make the alignment uniform, find maximum height */
|
/* To make the alignment uniform, find maximum height */
|
||||||
int maxh = font_list[0]->height;
|
int maxh = font_list[0]->height;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user