summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-01-25 22:44:00 +0000
committerOle Loots <ole@monochrom.net>2012-01-25 22:44:00 +0000
commitf3aa0a5179d665050bce6799b0fc9ccf99429ab8 (patch)
tree841af1d42fb11d0ac2a5094c30c80576afa03d18 /atari
parent2300b8adab373cd818d1b63b20536bf20034f33c (diff)
downloadnetsurf-f3aa0a5179d665050bce6799b0fc9ccf99429ab8.tar.gz
netsurf-f3aa0a5179d665050bce6799b0fc9ccf99429ab8.tar.bz2
Default to "not rendering" when setting GUI poll priority.
svn path=/trunk/netsurf/; revision=13408
Diffstat (limited to 'atari')
-rwxr-xr-xatari/gui.c36
1 files changed, 15 insertions, 21 deletions
diff --git a/atari/gui.c b/atari/gui.c
index 9726d9f12..f2b6d064f 100755
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -271,29 +271,23 @@ void gui_window_set_title(struct gui_window *gw, const char *title)
* set the status bar message
*/
void gui_window_set_status(struct gui_window *w, const char *text)
-{
-
- static char * msg_done = NULL;
- static char * msg_loading = NULL;
- static char * msg_fetch = NULL;
-
- if( msg_done == NULL ){
- msg_done = messages_get("Done");
- msg_loading = messages_get("Loading");
- msg_fetch = messages_get("Fetch");
+{
+ static char * msg_loading = NULL;
+ static char * msg_fetch = NULL;
+
+ if( msg_loading == NULL ){
+ msg_loading = messages_get("Loading");
+ msg_fetch = messages_get("Fetch");
}
+
+ if( (strncmp(msg_loading, text, 4) == 0)
+ ||
+ (strncmp(msg_fetch, text, 4)) == 0 ) {
+ rendering = true;
+ } else {
+ rendering = false;
+ }
- if( strncmp(msg_done, text, 4) == 0 ){
- rendering = false;
- } else {
- if( !rendering
- &&
- (
- strncmp(msg_loading, text, 4) == 0 ||
- strncmp(msg_fetch, text, 4) == 0)) {
- rendering = true;
- }
- }
if (w == NULL || text == NULL )
return;
window_set_stauts( w , (char*)text );