Don't scale the window if we aren't using scaling.

This commit is contained in:
Jaime Thomas 2009-02-21 03:19:02 +00:00
parent 7e5df4ed70
commit aa0cbe616f

View File

@ -246,8 +246,11 @@ ecdb_create_main_gui(void)
edje_object_size_min_get(em->page->gui, &mw, &mh);
if (mw <= 0) mw = 400;
if (mh <= 0) mh = 300;
if (ecore_config_boolean_get("use_scale"))
{
mw = (int)((float)mw * em->scalef);
mh = (int)((float)mh * em->scalef);
}
evas_object_resize(em->page->gui, mw, mh);
ecore_evas_resize(em->main_win_ee, mw, mh);
ecore_evas_size_min_set(em->main_win_ee, mw, mh);