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