summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-04-18 19:43:18 (GMT)
committer James Bursa <james@netsurf-browser.org>2005-04-18 19:43:18 (GMT)
commita13b4fc11cdeee628d92fd6d734ed0f5ffa497fc (patch)
tree5d99a11502fa9d0d805a5088b7b4b72cddef97e7
parentfef981f68c4cdd6541daae3a7b5422e9bb33ee7f (diff)
downloadlibrufl-a13b4fc11cdeee628d92fd6d734ed0f5ffa497fc.tar.gz
librufl-a13b4fc11cdeee628d92fd6d734ed0f5ffa497fc.tar.bz2
[project @ 2005-04-18 19:43:18 by bursa]
Restore old hourglass colours after substitution table generation. svn path=/import/rufl/; revision=2462
-rw-r--r--rufl_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rufl_init.c b/rufl_init.c
index 24687f6..00ff146 100644
--- a/rufl_init.c
+++ b/rufl_init.c
@@ -78,6 +78,7 @@ rufl_code rufl_init(void)
int fm_version;
rufl_code code;
font_f font;
+ os_colour old_sand, old_glass;
if (rufl_font_list_entries)
/* already initialized */
@@ -148,7 +149,7 @@ rufl_code rufl_init(void)
}
xhourglass_leds(2, 0, 0);
- xhourglass_colours(0x0000ff, 0x00ffff, 0, 0);
+ xhourglass_colours(0x0000ff, 0x00ffff, &old_sand, &old_glass);
code = rufl_init_substitution_table();
if (code != rufl_OK) {
LOG("rufl_init_substitution_table: 0x%x", code);
@@ -156,6 +157,7 @@ rufl_code rufl_init(void)
xhourglass_off();
return code;
}
+ xhourglass_colours(old_sand, old_glass, 0, 0);
if (changes) {
LOG("%u new charsets", changes);