X-Git-Url: https://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/21cc9760ac4baf20afe22a6a4a754058ee61d8a5..330b2128b45a70ac0f52b280f132ac2b79837ac5:/sys-apps/lcdtest/files/lcdtest-1.18-font-path.patch?ds=sidebyside 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 index 0000000..196e2b9 --- /dev/null +++ b/sys-apps/lcdtest/files/lcdtest-1.18-font-path.patch @@ -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);