Description: Add support for DATA_PATH define
 The DATA_PATH define allows data files to be installed in an arbitrary
 directory and still be located by the executable.
Author: Alexandros Frantzis <alexandros.frantzis@linaro.org>
Last-Update: 2010-06-29
--- a/main.c
+++ b/main.c
@@ -446,12 +446,12 @@
    surf_win = xrender_surf_adopt(disp, win, DefaultVisual(disp, DefaultScreen(disp)), win_w, win_h);
    surf_off = xrender_surf_new(disp, win, DefaultVisual(disp, DefaultScreen(disp)), 320, 320, 0);
    surf_img = xrender_surf_new(disp, win, DefaultVisual(disp, DefaultScreen(disp)), 100, 100, 1);
-   populate_from_file(disp, surf_win, "tst_opaque.png");
-   populate_from_file(disp, surf_off, "tst_opaque.png");
-   populate_from_file(disp, surf_img, "tst_transparent.png");
+   populate_from_file(disp, surf_win, DATA_PATH"tst_opaque.png");
+   populate_from_file(disp, surf_off, DATA_PATH"tst_opaque.png");
+   populate_from_file(disp, surf_img, DATA_PATH"tst_transparent.png");
    
-   im_win = imlib_load_image("tst_opaque.png");
-   im_img = imlib_load_image("tst_transparent.png");
+   im_win = imlib_load_image(DATA_PATH"tst_opaque.png");
+   im_img = imlib_load_image(DATA_PATH"tst_transparent.png");
 
    printf("*** ROUND 1 ***\n");
    srand(7);
