summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-11-09 14:02:04 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-11-09 14:02:04 +0000
commit3b6476130da62806c1bce7f3b30da299779f8bd9 (patch)
treefa513f93b9be8f4b0542f7c382d2657e97bf4c4c /amiga
parent9ae3c4f186bc33bfd80945c19c78d42848c57c37 (diff)
downloadnetsurf-3b6476130da62806c1bce7f3b30da299779f8bd9.tar.gz
netsurf-3b6476130da62806c1bce7f3b30da299779f8bd9.tar.bz2
mime type overflow and tab switching fixes.
svn path=/trunk/netsurf/; revision=5660
Diffstat (limited to 'amiga')
-rw-r--r--amiga/filetype.c4
-rwxr-xr-xamiga/gui.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/amiga/filetype.c b/amiga/filetype.c
index 2f22ba509..394b6384a 100644
--- a/amiga/filetype.c
+++ b/amiga/filetype.c
@@ -32,7 +32,7 @@
const char *fetch_filetype(const char *unix_path)
{
- static char mimetype[20];
+ static char mimetype[50];
STRPTR ttype = NULL;
struct DiskObject *dobj = NULL;
BPTR lock = 0;
@@ -90,7 +90,7 @@ const char *fetch_filetype(const char *unix_path)
}
}
- if(!mimetype) strcpy(mimetype,"text/plain"); /* If all else fails */
+ if(!mimetype) strcpy(mimetype,"text/html"); /* If all else fails */
return mimetype;
}
diff --git a/amiga/gui.c b/amiga/gui.c
index e42ca3121..518ecea51 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -1027,10 +1027,13 @@ void ami_switch_tab(struct gui_window_2 *gwin,bool redraw)
if(redraw)
{
- gui_window_set_scroll(gwin->bw->window,gwin->bw->window->scrollx,gwin->bw->window->scrolly);
-
browser_window_update(gwin->bw,false);
+ if((gwin->bw->window->scrollx) || (gwin->bw->window->scrolly))
+ {
+ gui_window_set_scroll(gwin->bw->window,gwin->bw->window->scrollx,gwin->bw->window->scrolly);
+ }
+
if(gwin->bw->current_content)
gui_window_set_url(gwin->bw->window,gwin->bw->current_content->url);
}