X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fosdl.h;h=6b789777b2c941626f4c49388c1cf607abe4e4d2;hb=5cc6dcb71c2f2f24e54bf1ab9f09d8e560e8e4d9;hp=ea5bce2c73c80df640840cc6bdb94a9604cd231e;hpb=e1837b2c78d48d2811ff77e8702810b7620dd4f8;p=sdl_omap.git diff --git a/src/video/omapdss/osdl.h b/src/video/omapdss/osdl.h index ea5bce2..6b78977 100644 --- a/src/video/omapdss/osdl.h +++ b/src/video/omapdss/osdl.h @@ -27,6 +27,7 @@ struct SDL_PrivateVideoData { struct vout_fbdev *fbdev; + void *front_buffer; void *saved_layer; /* physical screen size, should match touchscreen */ int phys_w, phys_h; @@ -42,21 +43,25 @@ struct SDL_PrivateVideoData { unsigned int app_uses_flip:1; unsigned int cfg_force_vsync:1; unsigned int cfg_force_doublebuf:1; + unsigned int cfg_force_directbuf:1; unsigned int cfg_no_ts_translate:1; unsigned int cfg_ts_force_tslib:1; }; void *osdl_video_set_mode(struct SDL_PrivateVideoData *pdata, int border_l, int border_r, int border_t, int border_b, - int width, int height, int bpp, int *doublebuf); + int width, int height, int bpp, int *doublebuf, + const char *wm_title); void *osdl_video_flip(struct SDL_PrivateVideoData *pdata); +void *osdl_video_get_active_buffer(struct SDL_PrivateVideoData *pdata); int osdl_video_detect_screen(struct SDL_PrivateVideoData *pdata); +int osdl_video_pause(struct SDL_PrivateVideoData *pdata, int is_pause); void osdl_video_finish(struct SDL_PrivateVideoData *pdata); void omapsdl_input_init(void); void omapsdl_input_bind(const char *kname, const char *sdlname); int omapsdl_input_get_events(int timeout_ms, - int (*key_cb)(void *cb_arg, int sdl_kc, int is_pressed), + int (*key_cb)(void *cb_arg, int sdl_kc, int sdl_sc, int is_pressed), int (*ts_cb)(void *cb_arg, int x, int y, unsigned int pressure), void *cb_arg); void omapsdl_input_finish(void);