From: Nemec, Bernhard <Bernhard.N<emec@vi...> - 2005-02-23 06:38:09
Switching this discussion from e-users to e-devel...
> > the attached patch of evas_software_x11_main.c demonstrates
> a problem
> > with Evas' image_object.
> > It scales the whole output by a factor of 2, yet in "Test
> 5: Border Fill
> > 2 Images", the image borders are not scaled at all.
> > When output and viewport sizes are not the same, I would expect
> > everything to be scaled by the same factor.
> Hmm - yeah. i know what you mean. i am beginning to wonder if
> we should support
> viewport not at 1:1 with canvas co-ords. it is a pain to deal
> with - a REAL pain
> :( for example the textblock code i've been working on will
> just be insane to do
> with a viewport not 1:1 with the canvas co-ords :( is it
> possible you can make
> things so they don't use evas viewport magic for scaling etc.?
Of course it would be possible to work around this in other
ways, or hack-fix it in Evas (e. g., publishing the output/
viewport ratio as a global variable and using it to scale
borders in evas_object_image as I did - yuck!). Yet I don't
know what the "proper" solution would be really... Probably
the objects need some kind of information about the output
resolution. We've got a similar problem with fonts in this
Regard (fixed dpi).
I think the scaling feature would be really nice thing to have
in evas. Here, I'm using this to show a GUI that normally runs
on an embedded device (small display) on a PC for beamer
presentations. It's very neat if you can scale the whole thing
to full-screen that easily.