add OMAP layer handling
[sdl_omap.git] / src / video / omapdss / config.c
index 865b80a..b829847 100644 (file)
@@ -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);
+}