pkgsrc-wip/daphne/patches/patch-af
Dieter Baron 0fcb0a864f - Make it find ConsoleFont.bmp
- Fix PLIST
- Install .ogg files
- Install documentation
2006-07-25 22:21:56 +00:00

30 lines
942 B
Text

$NetBSD: patch-af,v 1.4 2006/07/25 22:21:56 dillo Exp $
--- src/video/video.cpp.orig 2006-03-15 01:01:36.000000000 +0100
+++ src/video/video.cpp
@@ -36,6 +36,7 @@
#include "SDL_Console.h"
#include "../game/game.h"
#include "../ldp-out/ldp.h"
+#include "../daphne.h" // for find_data_file
using namespace std;
@@ -138,7 +139,7 @@ bool init_display()
SDL_WM_SetCaption("DAPHNE: First Ever Multiple Arcade Laserdisc Emulator =]", "daphne");
// initialize SDL console in the background
- if (ConsoleInit("pics/ConsoleFont.bmp", g_screen, 100)==0)
+ if (ConsoleInit(find_data_file("pics/ConsoleFont.bmp"), g_screen, 100)==0)
{
AddCommand(g_cpu_break, "break");
g_console_initialized = true;
@@ -243,7 +244,7 @@ bool load_bmps()
SDL_Surface *load_one_bmp(char *filename)
{
- SDL_Surface *result = SDL_LoadBMP(filename);
+ SDL_Surface *result = SDL_LoadBMP(find_data_file(filename));
if (!result)
{