summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-11-01 14:53:04 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-11-01 14:53:04 +0000
commit019eff10c1d68c80593d3fa6fedf1f6428fcff63 (patch)
tree9fdf607ad2d43d91b1f3bf07c1df137e78926ffd /amiga/gui.c
parent90012b487ab2732fd8b331b525007976c085ee51 (diff)
downloadnetsurf-019eff10c1d68c80593d3fa6fedf1f6428fcff63.tar.gz
netsurf-019eff10c1d68c80593d3fa6fedf1f6428fcff63.tar.bz2
Amiga print UI
svn path=/trunk/netsurf/; revision=9655
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 5dbff0395..3ad072100 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -836,6 +836,23 @@ void ami_handle_msg(void)
continue;
}
}
+ else if(node->Type == AMINS_PRINTWINDOW)
+ {
+ if(ami_print_event((struct ami_print_window *)gwin))
+ {
+ if(IsMinListEmpty(window_list))
+ {
+ /* last window closed, so exit */
+ ami_try_quit();
+ }
+ break;
+ }
+ else
+ {
+ node = nnode;
+ continue;
+ }
+ }
else if(node->Type == AMINS_GUIOPTSWINDOW)
{
if(ami_gui_opts_event())
@@ -1549,6 +1566,7 @@ void gui_multitask(void)
ami_handle_msg();
ami_handle_appmsg();
+ ami_handle_applib();
ami_arexx_handle();
}
@@ -1565,6 +1583,7 @@ void gui_poll(bool active)
schedule_run checks every event, really they need to be sorted so only
the first event needs to be run on each signal. */
+
if(active)
{
gui_multitask();
@@ -2748,8 +2767,8 @@ void ami_do_redraw(struct gui_window_2 *g)
{
content_redraw(c, -hcurrent,
-vcurrent,
- (width / g->bw->scale) - hcurrent,
- (height / g->bw->scale) - vcurrent,
+ width - hcurrent,
+ height - vcurrent,
0,0,width,
height,
g->bw->scale,0xFFFFFF);