allow empty lines in config
[sdl_omap.git] / src / video / omapdss / config.c
index 52809d6..a70cd3c 100644 (file)
@@ -65,7 +65,7 @@ void omapsdl_config(void)
                if (line == NULL)
                        break;
                p = line = sskip(line);
-               if (*p == '#')
+               if (*p == 0 || *p == '#')
                        continue;
 
                if (check_token(&p, "bind")) {
@@ -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);
+}