3 #if defined(_WIN32) || defined(__WIN32__)
6 inline void TestWait(int seconds
)
14 inline void TestWait(int seconds
)
22 inline int VideoInit()
24 if (SDL_Init(SDL_INIT_VIDEO
) < 0) {
25 fprintf(stderr
, "Could not initiliaze video: %s\n", SDL_GetError());
29 const SDL_VideoInfo
*vi
= SDL_GetVideoInfo();
31 fprintf(stderr
, "Could not get video info: %s", SDL_GetError());
35 if (!SDL_SetVideoMode(vi
->current_w
, vi
->current_h
, 0, SDL_FULLSCREEN
)) {
36 fprintf(stderr
, "Could not set a fullscreen video mode: %s", SDL_GetError());
45 inline int CollectInput(int *x
, int *y
, int *button
)
50 while (SDL_PollEvent(&e
)) {
56 case SDL_MOUSEBUTTONDOWN
:
65 inline int VideoQuit()