Support fullscreen option. 65/127065/1
authorMinkyoung Kim <sleepigmk@gmail.com>
Wed, 26 Apr 2017 05:44:33 +0000 (14:44 +0900)
committerMinkyoung Kim <sleepigmk@gmail.com>
Wed, 26 Apr 2017 05:47:24 +0000 (14:47 +0900)
[Model] tizen3.0
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] -f option doesn't work.
[Cause & Measure] Expedite don't treat -f option.
[Checking Method] Run with -f option.

[Team] UI System
[Developer] Minkyoung Kim
[Solution company] Samsung
[Change Type] Self Test

Change-Id: I8032f7ac0c1a45463dadff93fea12b0df2720d71

src/bin/main.c
src/bin/ui.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)
      {
index 9553445..2b50984 100644 (file)
@@ -489,6 +489,16 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
    sync();
    sync();
 #endif
+   
+   printf("\n#####Test Start#####\n"
+          "profile: %s\n"
+          "window size: %i, %i\n"
+          "loop count: %i\n"
+          "engine: %s\n",
+          profile,
+          win_w, win_h,
+          loops,
+          choosen_engine);
 
    menu_active = 1;
 }