That is not what I meant to propose.
In elm all widgets etc should be scaled by elm_config_scale - and outside
elm they are not.
I'd like to have an elm API to resize things (windows being a common
example) without having to remember the multiplication.

If done right it should not break anything.
Andy
On Sun, 1 May 2016 at 02:17, Carsten Haitzler <ras...@rasterman.com> wrote:

> On Sat, 30 Apr 2016 17:34:20 +0000 Andrew Williams <a...@andywilliams.me>
> said:
>
> > What would break?
> > How can we help people create appropriately sized Windows / widgets on a
> > scaled display? It's clearly not easy yet as over 50% of the Windows
> > created in efl codebases (not including e) do not set up correctly when
> > using custom sizes.
>
> resize resizes to the specific pixel size. that's its definition. changing
> it
> will break so much. and evas_object_resize resizes ANY object. not just
> windows. it'd totally break every single widget if the size calculated for
> the
> obj now also is scaled.
>
> > Thanks,
> > Andy
> > On Sat, 30 Apr 2016 at 12:56, Carsten Haitzler <ras...@rasterman.com>
> wrote:
> >
> > > On Wed, 27 Apr 2016 15:59:46 +0000 Andrew Williams <
> a...@andywilliams.me>
> > > said:
> > >
> > > > Hi,
> > > >
> > > > It seems that this is a frequent issue, and a common use case is to
> set
> > > the
> > > > window size.
> > > > As it's not clear to everyone that evas is not pre-multiplied (as it
> > > were)
> > > > with elm's scale value I wonder if it would be better to provide an
> > > > elm_win_resize that will simply multiiply the value and call the
> > > > evas_object_resize.
> > >
> > > hmmm no. this would be bad. it actually would break so so so much.
> > >
> > > > I suggested this a while back but can't recall why people didn't
> like it.
> > > > Anyone against it now?
> > > >
> > > > Thanks,
> > > > Andrew
> > > >
> > > > On Wed, 27 Apr 2016 at 16:56 Andy Williams <a...@andywilliams.me>
> wrote:
> > > >
> > > > > ajwillia-ms pushed a commit to branch master.
> > > > >
> > > > >
> > > > >
> > >
> http://git.enlightenment.org/core/efl.git/commit/?id=c47b5a364c7f8e467bc3976eb0e040e0fd787d3d
> > > > >
> > > > > commit c47b5a364c7f8e467bc3976eb0e040e0fd787d3d
> > > > > Author: Andy Williams <a...@andywilliams.me>
> > > > > Date:   Wed Apr 27 16:20:02 2016 +0100
> > > > >
> > > > >     elementary: Set window size based on scale
> > > > > ---
> > > > >  src/bin/elementary/config.c | 3 ++-
> > > > >  src/bin/elementary/test.c   | 2 +-
> > > > >  2 files changed, 3 insertions(+), 2 deletions(-)
> > > > >
> > > > > diff --git a/src/bin/elementary/config.c
> b/src/bin/elementary/config.c
> > > > > index ed1261a..2eb64b8 100644
> > > > > --- a/src/bin/elementary/config.c
> > > > > +++ b/src/bin/elementary/config.c
> > > > > @@ -4167,7 +4167,8 @@ win_create(void)
> > > > >       _status_config(win, bx0);
> > > > >     else _status_config_full(win, bx0);
> > > > >
> > > > > -   evas_object_resize(win, 320, 480);
> > > > > +   evas_object_resize(win, 320 * elm_config_scale_get(),
> > > > > +                           480 * elm_config_scale_get());
> > > > >     evas_object_show(win);
> > > > >  }
> > > > >
> > > > > diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c
> > > > > index 5f272a0..de8e6d3 100644
> > > > > --- a/src/bin/elementary/test.c
> > > > > +++ b/src/bin/elementary/test.c
> > > > > @@ -940,7 +940,7 @@ add_tests:
> > > > >       }
> > > > >
> > > > >     /* set an initial window size */
> > > > > -   evas_object_resize(win, 480, 480);
> > > > > +   evas_object_resize(win, 480 * elm_config_scale_get(), 480 *
> > > > > elm_config_scale_get());
> > > > >     evas_object_show(win);
> > > > >  }
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > >
> > > > >
> > > >
> > >
> ------------------------------------------------------------------------------
> > > > Find and fix application performance issues faster with Applications
> > > Manager
> > > > Applications Manager provides deep performance insights into multiple
> > > tiers of
> > > > your business applications. It resolves application problems quickly
> and
> > > > reduces your MTTR. Get your free trial!
> > > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> > > > _______________________________________________
> > > > enlightenment-devel mailing list
> > > > enlightenment-devel@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >
> > >
> > >
> > > --
> > > ------------- Codito, ergo sum - "I code, therefore I am"
> --------------
> > > The Rasterman (Carsten Haitzler)    ras...@rasterman.com
> > >
> > >
>
>
> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
>
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to