X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fconfig.c;h=b829847952e4971d3dd73487f056e1ab20ac2e9f;hb=f641fccb7413775feab03ea268cc503cfb47b9b7;hp=865b80ad4094848955f5f378bf85cac8beb50d29;hpb=0aab059fdffebbbf5af73cc7549adaf58470d0ec;p=sdl_omap.git diff --git a/src/video/omapdss/config.c b/src/video/omapdss/config.c index 865b80a..b829847 100644 --- a/src/video/omapdss/config.c +++ b/src/video/omapdss/config.c @@ -1,5 +1,5 @@ /* - * (C) notaz, 2010 + * (C) Gražvydas "notaz" Ignotas, 2010 * * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. * See the COPYING file in the top-level directory. @@ -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); +}