From ff7cf937629933e782eb8103dadb8b5f27f14a4d Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Wed, 28 Nov 2012 21:30:24 +0100 Subject: Started refactoring of global redraw handling. --- atari/statusbar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'atari/statusbar.c') diff --git a/atari/statusbar.c b/atari/statusbar.c index c8f8688c6..d76cf6365 100755 --- a/atari/statusbar.c +++ b/atari/statusbar.c @@ -38,7 +38,7 @@ #include "atari/gui.h" #include "atari/statusbar.h" -#include "atari/rootwin.h" +#include "atari/rootwin.h" #include "atari/misc.h" #include "atari/global_evnt.h" #include "atari/res/netsurf.rsh" @@ -182,7 +182,7 @@ void sb_destroy( CMP_STATUSBAR s ) } } -void sb_set_text( CMP_STATUSBAR sb , char * text ) +void sb_set_text(CMP_STATUSBAR sb , const char * text) { LGRECT work; @@ -221,11 +221,11 @@ void sb_destroy( CMP_STATUSBAR s ) void sb_attach(CMP_STATUSBAR sb, struct gui_window * gw) { - sb->aes_win = gw->root->handle->handle; + sb->aes_win = guiwin_get_handle(gw->root->win); sb->attached = true; } -void sb_set_text(CMP_STATUSBAR sb, char * text ) +void sb_set_text(CMP_STATUSBAR sb, const char * text ) { assert( sb != NULL ); strncpy(sb->text, text, STATUSBAR_MAX_SLEN); -- cgit v1.2.3