From 0ad7cabf1feaa6af32f127254453f6b37d9fecc6 Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Sun, 26 Dec 2004 14:46:39 +0000 Subject: - final touch to writing mechanism of the config system - tmw now can read and write its ini file - some fixes in login.cpp to get it to work properly - Init method -> init - Write method -> write - minor code "beautification" in several files --- src/gui/gui.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/gui/gui.cpp') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 0c052fec..b6bfd72f 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -127,7 +127,7 @@ void loadButtonSkin() { int a = 0; int x,y,mode; - tokens = get_config_argv("button", "gridx", &tokenCount); + tokens = get_config_argv("button", "gridx", &tokenCount); for (a=0; a < 4; a++) { gridx[a] = atoi(tokens[a]); } @@ -438,22 +438,22 @@ void draw_skinned_rect(BITMAP*dst, LexSkinnedRect *skin, int x, int y,int w, int int gui_load_skin(const char* skinname) { - gui__external_slider_callback = NULL; - push_config_state(); - set_config_file(skinname); - gui_gfx = load_datafile(get_config_string("skin", "gfx", 0)); - loadButtonSkin(); - loadSliderSkin(); - loadCheckboxSkin(); - loadTextboxSkin(); - loadListboxSkin(); - loadDialogSkin(); - loadBarSkin(); - loadPlusSkin(); - pop_config_state(); - set_mouse_sprite((BITMAP *)gui_gfx[7].dat); - - return TRUE; + gui__external_slider_callback = NULL; + push_config_state(); + set_config_file(skinname); + gui_gfx = load_datafile(get_config_string("skin", "gfx", 0)); + loadButtonSkin(); + loadSliderSkin(); + loadCheckboxSkin(); + loadTextboxSkin(); + loadListboxSkin(); + loadDialogSkin(); + loadBarSkin(); + loadPlusSkin(); + pop_config_state(); + set_mouse_sprite((BITMAP *)gui_gfx[7].dat); + + return TRUE; } void gui_exit() { -- cgit v1.2.3-70-g09d2