[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ...
From: |
Benjamin Wolsey |
Subject: |
AW: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ... |
Date: |
Wed, 12 Mar 2008 16:12:56 +0000 (GMT) |
> * server/edit_text_character.cpp: don't use == when comparing
> floats.
> * server/asobj/Stage.cpp: return actual stage size when scaleMode
> is noScale. This allows the stage resize listeners to work
> out what to do (which is the point of noScale).
> * server/movie_root:cpp: minor cast cleanup.
noScale in conjunction with the onResize stage method is supposed to allow
resizing a SWF without all the elements (e.g. text, bitmaps) getting scaled
equally. To do that, they need the correct stage size. This commit makes sure
that gets reported by Stage.getHeight() and .getWidth(), which is correct
behaviour.
Some movies work much better (before, noScale meant that movies simply stayed
the same size), e.g.
http://www.tutorio.com/media/flash/liquid-demo.swf
I've found one movie that behaves oddly: youtube's player2.swf (only when it's
resized). The player resizes correctly, but is simultaneously diagonally offset
by a corresponding amount. The text turns upside-down (negative textfield
length) when it reaches certain dimensions. I suspect these are all related to
the SWF doing something with the stage size, though, not incorrect stage size
values.
Clicking the 'fullscreen' button on youtube also shows apparent problems with
invalidated bounds: the movie freezes, but selecting 'redraw' gets it going
again.
It would also intermittently fail the assertion in edit_text_character, but
that was an inadvisable assertion.
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
- AW: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ...,
Benjamin Wolsey <=