X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fconfig.c;h=0b7146a47dfc190f6278d11c2ad86f54cc7f8bf5;hb=e1837b2c78d48d2811ff77e8702810b7620dd4f8;hp=d84b862f0ae2aa0c6c13de9d1ca0fd10d154f973;hpb=455c8c43b353b60ebbb70caa09ae87be49520838;p=sdl_omap.git diff --git a/src/video/omapdss/config.c b/src/video/omapdss/config.c index d84b862..0b7146a 100644 --- a/src/video/omapdss/config.c +++ b/src/video/omapdss/config.c @@ -11,7 +11,7 @@ #include #include -#include "omapsdl.h" +#include "osdl.h" static char *sskip(char *p) { @@ -95,6 +95,10 @@ void omapsdl_config(struct SDL_PrivateVideoData *pdata) pdata->cfg_no_ts_translate = !!strtol(p, NULL, 0); continue; } + else if (check_token_eq(&p, "ts_force_tslib")) { + pdata->cfg_ts_force_tslib = !!strtol(p, NULL, 0); + continue; + } bad: err("config: failed to parse: %s", line); @@ -115,6 +119,9 @@ void omapsdl_config_from_env(struct SDL_PrivateVideoData *pdata) tmp = getenv("SDL_OMAP_NO_TS_TRANSLATE"); if (tmp != NULL) pdata->cfg_no_ts_translate = !!strtol(tmp, NULL, 0); + tmp = getenv("SDL_OMAP_TS_FORCE_TSLIB"); + if (tmp != NULL) + pdata->cfg_ts_force_tslib = !!strtol(tmp, NULL, 0); tmp = getenv("SDL_OMAP_BORDER_CUT"); if (tmp != NULL) { int l, r, t, b;