X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=sdl_omap.git;a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fomapsdl.h;h=1f937c0cfc265f2e3c9659e6596dc866124b0e56;hp=3f15bb742409a2f7fc00ee9844d99980b8caf826;hb=5f4b1fd346a57d90ffda9eaba68c7b0b0aa8acab;hpb=f151701dfcb28c9ce6adb5f5c8c89a97d74a5076 diff --git a/src/video/omapdss/omapsdl.h b/src/video/omapdss/omapsdl.h index 3f15bb7..1f937c0 100644 --- a/src/video/omapdss/omapsdl.h +++ b/src/video/omapdss/omapsdl.h @@ -28,8 +28,17 @@ struct SDL_PrivateVideoData { struct vout_fbdev *fbdev; void *saved_layer; - int screen_w, screen_h; + /* physical screen size, should match touchscreen */ + int phys_w, phys_h; + /* layer */ + int layer_x, layer_y, layer_w, layer_h; + /* phys -> layer coord multipliers (16.16) */ + int ts_xmul, ts_ymul; + /* misc/config */ unsigned int xenv_up:1; + unsigned int cfg_force_vsync:1; + unsigned int cfg_force_doublebuf:1; + unsigned int cfg_no_ts_translate:1; }; int osdl_video_set_mode(struct SDL_PrivateVideoData *pdata, @@ -46,12 +55,9 @@ int omapsdl_input_get_events(int timeout_ms, void *cb_arg); void omapsdl_input_finish(void); -void omapsdl_config(void); -void omapsdl_config_from_env(void); +void omapsdl_config(struct SDL_PrivateVideoData *pdata); +void omapsdl_config_from_env(struct SDL_PrivateVideoData *pdata); /* functions for standalone */ void do_clut(void *dest, void *src, unsigned short *pal, int count); -/* config */ -extern int gcfg_force_vsync; -extern int gcfg_force_doublebuf;