fixup missing includes from schedule changes

This commit is contained in:
Vincent Sanders 2014-03-09 16:14:05 +00:00
parent 87f6314dab
commit 5c6a0eda3b
6 changed files with 14 additions and 6 deletions

View File

@ -484,7 +484,7 @@ struct NewMenu *ami_create_menu(struct gui_window_2 *gwin)
if(nsoption_int(menu_refresh) > 0)
{
ami_schedule(nsoption_int(menu_refresh) * 10,
ami_menu_refresh,
(void *)ami_menu_refresh,
gwin);
}

View File

@ -17,7 +17,6 @@
*/
#include "amiga/os3support.h"
#include "amiga/schedule.h"
#include <proto/exec.h>
#include <proto/timer.h>
@ -26,6 +25,10 @@
#include <stdbool.h>
#include <pbl.h>
#include "utils/errors.h"
#include "amiga/schedule.h"
struct nscallback
{
struct TimeVal tv;

View File

@ -1396,5 +1396,5 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data)
if(nsoption_bool(direct_render) == false)
ami_schedule(0, ami_tree_redraw_req, atrr_data);
else
am_schedule(0, ami_tree_redraw_req_dr, atrr_data);
ami_schedule(0, ami_tree_redraw_req_dr, atrr_data);
}

View File

@ -22,6 +22,8 @@
#include <sys/time.h>
#include <time.h>
#include "utils/errors.h"
#include "atari/schedule.h"
#ifdef DEBUG_SCHEDULER

View File

@ -18,6 +18,8 @@
#import <Cocoa/Cocoa.h>
#import "utils/errors.h"
#import "cocoa/schedule.h"
@interface ScheduledCallback : NSObject {

View File

@ -19,10 +19,11 @@
#include <sys/time.h>
#include <time.h>
#include "windows/schedule.h"
#include "utils/log.h"
#include "utils/utils.h"
#include "utils/errors.h"
#include "windows/schedule.h"
#ifdef DEBUG_SCHEDULER
#define SRLOG(x) LOG(x)
@ -110,7 +111,7 @@ nserror win32_schedule(int ival, void (*callback)(void *p), void *p)
}
tv.tv_sec = ival / 1000; /* miliseconds to seconds */
tv.tv_usec = (cs_ival % 1000) * 1000; /* remainder to microseconds */
tv.tv_usec = (ival % 1000) * 1000; /* remainder to microseconds */
nscb = calloc(1, sizeof(struct nscallback));
if (nscb == NULL) {