]>
Commit | Line | Data |
---|---|---|
4ff9093d MT |
1 | --- grub-0.95/stage2/graphics.c.old 2005-01-11 09:34:17.125451981 -0500 |
2 | +++ grub-0.95/stage2/graphics.c 2005-01-11 09:34:03.743949015 -0500 | |
3 | @@ -108,12 +108,8 @@ | |
4 | * mode. */ | |
5 | int graphics_init() | |
6 | { | |
7 | - if (!graphics_inited) { | |
8 | - saved_videomode = set_videomode(0x12); | |
9 | - } | |
10 | - | |
11 | if (!read_image(splashimage)) { | |
12 | - set_videomode(saved_videomode); | |
13 | + current_term = term_table; | |
14 | grub_printf("failed to read image\n"); | |
15 | return 0; | |
16 | } | |
17 | @@ -303,6 +299,8 @@ | |
18 | if (!xpm_open(s)) | |
19 | return 0; | |
20 | ||
21 | + saved_videomode = set_videomode(0x12); | |
22 | + | |
23 | /* parse info */ | |
24 | while (grub_read(&c, 1)) { | |
25 | if (c == '"') |