X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fosdl.h;h=5421f1072e1f21561bc203748949067f1ece92e1;hb=79b5de0442e5ec99b36a6e5dabfc6031232f93ff;hp=3ca1bf5a4bd936f9b0c69de9b5b119453c2ebbd1;hpb=090bcb85b9cebd193299c9e93f4de8c5888094f4;p=sdl_omap.git diff --git a/src/video/omapdss/osdl.h b/src/video/omapdss/osdl.h index 3ca1bf5..5421f10 100644 --- a/src/video/omapdss/osdl.h +++ b/src/video/omapdss/osdl.h @@ -25,9 +25,12 @@ #define dbg(...) #endif +struct x11reuse_context; + struct SDL_PrivateVideoData { struct vout_fbdev *fbdev; - void *saved_layer; + void *front_buffer; + void *layer_state; /* physical screen size, should match touchscreen */ int phys_w, phys_h; /* layer */ @@ -37,13 +40,18 @@ struct SDL_PrivateVideoData { /* phys -> layer coord multipliers (16.16) */ int ts_xmul, ts_ymul; /* misc/config */ + struct x11reuse_context *x11reuse_context; unsigned int xenv_up:1; unsigned int xenv_mouse:1; 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; + /* delayed icon surface */ + struct SDL_Surface *delayed_icon; + void *delayed_icon_mask; }; void *osdl_video_set_mode(struct SDL_PrivateVideoData *pdata, @@ -51,8 +59,10 @@ void *osdl_video_set_mode(struct SDL_PrivateVideoData *pdata, 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); +int osdl_video_get_window(void **display, int *screen, void **window); void osdl_video_finish(struct SDL_PrivateVideoData *pdata); void omapsdl_input_init(void);