]> git.draconx.ca Git - gentoo-draconx.git/blob - sys-apps/lcdtest/files/lcdtest-1.18-font-path.patch
Add sys-apps/lcdtest ebuild.
[gentoo-draconx.git] / sys-apps / lcdtest / files / lcdtest-1.18-font-path.patch
1 diff --git a/src/lcdtest.c.orig b/src/lcdtest.c
2 index 93e5f29..d81e081 100644
3 --- a/src/lcdtest.c.orig
4 +++ b/src/lcdtest.c
5 @@ -741,9 +741,6 @@ int enumerate_sdl_modes (int *width, int *height, FILE *out)
6    return (m);
7  }
8  
9 -
10 -const char font_path [] = "/usr/share/fonts/liberation/LiberationMono-Regular.ttf";
11 -
12  int main (int argc, char *argv [])
13  {
14    SDL_Surface *screen;
15 @@ -762,12 +759,12 @@ int main (int argc, char *argv [])
16    SDL_EnableUNICODE (1);
17  
18    help_teaser_image = create_text_surface (help_teaser_message,
19 -                                          font_path,
20 +                                          FONT_PATH,
21                                            18,
22                                            white,
23                                            black);
24    help_image = create_text_surface (help_message,
25 -                                   font_path,
26 +                                   FONT_PATH,
27                                     18,
28                                     white,
29                                     black);