Support fullscreen option.
[platform/upstream/expedite.git] / src / bin / main.c
index d879378..9fa8409 100755 (executable)
@@ -1168,6 +1168,7 @@ static const Expedite_Resolution resolutions[] = {
   { "wsvga",   1024, 600 },
   { "wsvga-p", 600 , 1024},
   { "s9",      1600, 900 },
+  { "fullscreen",  0, 0 },
   { NULL, 0, 0 }
 };
 
@@ -1277,6 +1278,12 @@ main(int argc, char **argv)
         profile = resolution;
      }
 
+   if (fullscreen)
+     {
+        resolution_index = (sizeof(resolutions)/sizeof(resolutions[0])) - 2;
+        profile = resolutions[resolution_index].name;
+     }
+
    if (!async)
      setenv("ECORE_EVAS_FORCE_SYNC_RENDER", "1", 0);
 
@@ -1357,8 +1364,15 @@ main(int argc, char **argv)
    evas_font_path_append(evas, datadir);
    evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
 
-   ui_setup(resolutions[resolution_index].width,
-            resolutions[resolution_index].height);
+   if(!strcmp(profile,"fullscreen"))
+     {
+        int screen_w, screen_h;
+        ecore_evas_screen_geometry_get(ee, NULL, NULL, &screen_w, &screen_h);
+        ui_setup(screen_w, screen_h);
+     }
+   else
+     ui_setup(resolutions[resolution_index].width,
+             resolutions[resolution_index].height);
 
    if (tests_list)
      {