1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-04-30 21:59:15 +00:00

Fix "error: implicit declaration of function" from dspsubrs

Creates an sdldefs.h, declares a few more functions in sdl.c static,
and includes sdldefs.h in dspsubrs.c when necessary.
This commit is contained in:
Nick Briggs
2021-11-07 11:26:46 -08:00
parent 1db44b1f76
commit 64e0419af3
3 changed files with 19 additions and 5 deletions

11
inc/sdldefs.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef SDLDEFS_H
#define SDLDEFS_H 1
void sdl_notify_damage(int x, int y, int w, int h);
void sdl_setCursor(int hot_x, int hot_y);
void sdl_bitblt_to_screen(int _x, int _y, int _w, int _h);
void sdl_set_invert(int flag);
void sdl_setMousePosition(int x, int y);
void process_SDLevents();
int init_SDL(char *windowtitle, int w, int h, int s);
#endif