donn <[email protected]> wrote:

> How do I make the *surface* of CT larger so that draw_stuff() now
> works on 96 by 96 ... BUT not so that the Actor gets visibly larger?

If you want to resize the surface without changing the size of the
actor, just do this:

(old_width, old_height) = CT.get_size()
CT.set_surface_size(96, 96)
CT.set_size(old_width, old_height)

The surface size and the size of the actor don't have to be the
same. The surface size is just by default the preferred size of the
actor. You can override the preferred size by just setting the size on
the actor. If the size of the actor is different from the surface size
then the texture will be squished to fit in the actor size (which I
think is what you want).

The tricky part is working out how big to make the cairo surface (which
I think is what Emmanuele was trying to help with.

- Neil
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to