palpic2png.c: improve, make usable with ppic binary files
[rofl0r-openDOW.git] / video.h
blob090af866cb5b1f11d03a62d90fb0ab2930e2d5fa
1 #ifndef VIDEO_H
2 #define VIDEO_H
4 #ifndef SCALE
5 #define SCALE 2
6 #endif
7 #define VMODE_W 320*SCALE
8 #define VMODE_H 240*SCALE
10 #include "palpic.h"
11 #include <SDL/SDL.h>
13 extern struct vo_desc video;
15 void video_init(void);
16 void video_cleanup(void);
17 void toggle_fullscreen(void);
18 void clear_screen(void);
19 void video_update_region(int x, int y, int w, int h);
20 void video_update(void);
21 void video_darken_screen(void);
22 void video_save_rect(int x, int y, int w, int h, void* buf);
23 void video_restore_rect(int x, int y, int w, int h, const void* buf);
25 #pragma RcB2 DEP "video.c"
27 #endif