adjust default layer size to fit screen
[sdl_omap.git] / README.OMAP
index 4c6be5d..b39fb33 100644 (file)
@@ -34,15 +34,26 @@ export SDL_VIDEODRIVER=omapdss
 ---
 
 Other environment variables:
+
 SDL_OMAP_LAYER_SIZE:
   Output layer size. Regardless what you set with SDL_SetVideoMode(), output
   will be scaled to this size using hardware. Valid values:
     "WxH", for example "640x480"
-    "fullscreen" for to cover whole screen.
+    "fullscreen" to cover whole screen.
+
 SDL_OMAP_VSYNC:
-  Enables waiting for vertical sync on SDL_Flit() calls.
+  Enables waiting for vertical sync on SDL_Flip() calls.
   Set to "1" to enable, "0" to disable.
 
+SDL_OMAP_DEFAULT_MODE:
+  If the app doesn't specify resolution in SDL_SetVideoMode(), then use this.
+  Should be specified in "WxH" format, for example "640x480".
+
+SDL_OMAP_FORCE_DOUBLEBUF:
+  This can force double buffering to on, which can help to eliminate tearing.
+  Note that if app isn't updating whole buffer each frame, it will glitch.
+  This is the same as specifying SDL_DOUBLEBUF to SDL_SetVideoMode.
+
 
 Config file
 -----------
@@ -54,6 +65,9 @@ options (only when omapdss driver is active):
 # same as SDL_OMAP_VSYNC
 force_vsync = 1/0
 
+# same as SDL_OMAP_FORCE_DOUBLEBUF
+force_doublebuf = 1/0
+
 # can be used to bind a key to SDL keysym, good for quick ports.
 # Example:
 # bind ev_home = sdlk_space