cleanup Makefile, extract image-data, add init-script, replace generic image with...
[openwrt/svn-archive/archive.git] / utils / psplash / patches / 000-adjust-for-openwrt.patch
1 --- psplash.orig/psplash.c 2009-05-11 15:45:57.000000000 +0200
2 +++ psplash/psplash.c 2009-05-13 00:21:20.000000000 +0200
3 @@ -19,11 +19,11 @@
4 */
5
6 #include "psplash.h"
7 -#include "psplash-hand-img.h"
8 +#include "psplash-owrt-img.h"
9 #include "psplash-bar-img.h"
10 #include "radeon-font.h"
11
12 -#define MSG ""
13 +#define MSG "Loading - please wait..."
14
15 void
16 psplash_exit (int signum)
17 @@ -263,17 +263,17 @@
18 goto fb_fail;
19 }
20
21 - /* Clear the background with #ecece1 */
22 - psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height, 0xec, 0xec, 0xe1);
23 + /* Clear the background with #192a65 */
24 + psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height, 0x19, 0x2a, 0x65);
25
26 /* Draw the OH logo */
27 psplash_fb_draw_image (fb,
28 - (fb->width - HAND_IMG_WIDTH)/2,
29 - (fb->height - HAND_IMG_HEIGHT)/2,
30 - HAND_IMG_WIDTH,
31 - HAND_IMG_HEIGHT,
32 - HAND_IMG_BYTES_PER_PIXEL,
33 - HAND_IMG_RLE_PIXEL_DATA);
34 + 0,
35 + 0,
36 + OWRT_IMG_WIDTH,
37 + OWRT_IMG_HEIGHT,
38 + OWRT_IMG_BYTES_PER_PIXEL,
39 + OWRT_IMG_RLE_PIXEL_DATA);
40
41 /* Draw progress bar border */
42 psplash_fb_draw_image (fb,