document and add missing include

This commit is contained in:
Chris Young 2013-04-04 19:59:35 +01:00
parent 90266d117c
commit 2db0024651
2 changed files with 11 additions and 2 deletions

View File

@ -3871,8 +3871,10 @@ void gui_window_set_title(struct gui_window *g, const char *title)
} }
} }
static void ami_redraw_callback(struct gui_window_2 *gwin) static void ami_redraw_callback(void *p)
{ {
struct gui_window_2 *gwin = (struct gui_window_2 *)p;
if(gwin->redraw_required || gwin->bw->reformat_pending) { if(gwin->redraw_required || gwin->bw->reformat_pending) {
ami_do_redraw(gwin); ami_do_redraw(gwin);
} }
@ -3886,6 +3888,13 @@ static void ami_redraw_callback(struct gui_window_2 *gwin)
} }
} }
/**
* Schedule a redraw of the browser window - Amiga-specific function
*
* \param gwin a struct gui_window_2
* \param full_redraw set to true to schedule a full redraw,
should only be set to false when called from gui_window_update_box()
*/
void ami_schedule_redraw(struct gui_window_2 *gwin, bool full_redraw) void ami_schedule_redraw(struct gui_window_2 *gwin, bool full_redraw)
{ {
schedule(0, ami_redraw_callback, gwin); schedule(0, ami_redraw_callback, gwin);

View File

@ -19,7 +19,7 @@
#ifndef AMIGA_SCHEDULE_H #ifndef AMIGA_SCHEDULE_H
#define AMIGA_SCHEDULE_H #define AMIGA_SCHEDULE_H
#include <proto/timer.h> #include <proto/timer.h>
#include "utils/schedule.h"
#include "amiga/os3support.h" #include "amiga/os3support.h"
struct Device *TimerBase; struct Device *TimerBase;