X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fconfig.c;h=b829847952e4971d3dd73487f056e1ab20ac2e9f;hb=37299201ea61744044352c1b70c9e68faa206c3e;hp=52809d6328fc4c584957dc810f36f69e399b50be;hpb=83b5751b446734b65e83ed4210b3c5cba3435866;p=sdl_omap.git diff --git a/src/video/omapdss/config.c b/src/video/omapdss/config.c index 52809d6..b829847 100644 --- a/src/video/omapdss/config.c +++ b/src/video/omapdss/config.c @@ -96,4 +96,12 @@ bad: fclose(f); } +void omapsdl_config_from_env(void) +{ + const char *tmp; + + tmp = getenv("SDL_OMAP_VSYNC"); + if (tmp != NULL) + gcfg_force_vsync = atoi(tmp); +}