]> git.draconx.ca Git - gentoo-draconx.git/blobdiff - 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
diff --git a/sys-apps/lcdtest/files/lcdtest-1.18-font-path.patch b/sys-apps/lcdtest/files/lcdtest-1.18-font-path.patch
new file mode 100644 (file)
index 0000000..196e2b9
--- /dev/null
@@ -0,0 +1,29 @@
+diff --git a/src/lcdtest.c.orig b/src/lcdtest.c
+index 93e5f29..d81e081 100644
+--- a/src/lcdtest.c.orig
++++ b/src/lcdtest.c
+@@ -741,9 +741,6 @@ int enumerate_sdl_modes (int *width, int *height, FILE *out)
+   return (m);
+ }
+-
+-const char font_path [] = "/usr/share/fonts/liberation/LiberationMono-Regular.ttf";
+-
+ int main (int argc, char *argv [])
+ {
+   SDL_Surface *screen;
+@@ -762,12 +759,12 @@ int main (int argc, char *argv [])
+   SDL_EnableUNICODE (1);
+   help_teaser_image = create_text_surface (help_teaser_message,
+-                                         font_path,
++                                         FONT_PATH,
+                                          18,
+                                          white,
+                                          black);
+   help_image = create_text_surface (help_message,
+-                                  font_path,
++                                  FONT_PATH,
+                                   18,
+                                   white,
+                                   black);