Last change
on this file since e16e8f2 was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
911 bytes
|
Line | |
---|
1 | /* ----------------------------------------------------------------------- * |
---|
2 | * |
---|
3 | * Copyright 2008 H. Peter Anvin - All Rights Reserved |
---|
4 | * |
---|
5 | * This program is free software; you can redistribute it and/or modify |
---|
6 | * it under the terms of the GNU General Public License as published by |
---|
7 | * the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
---|
8 | * Boston MA 02110-1301, USA; either version 2 of the License, or |
---|
9 | * (at your option) any later version; incorporated herein by reference. |
---|
10 | * |
---|
11 | * ----------------------------------------------------------------------- */ |
---|
12 | |
---|
13 | #include <consoles.h> |
---|
14 | #include <string.h> |
---|
15 | #include "menu.h" |
---|
16 | |
---|
17 | const char *current_background = NULL; |
---|
18 | |
---|
19 | void set_background(const char *new_background) |
---|
20 | { |
---|
21 | if (!current_background || !new_background || |
---|
22 | strcmp(current_background, new_background)) { |
---|
23 | draw_background(new_background); |
---|
24 | current_background = new_background; |
---|
25 | } |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.