Hannes Mayr wrote:
strk wrote:
IIRC some renderers needed the window to exist before they could be
created. I think cairo is one of these.
The window and the renderer are created in the same function, so this
shouldn't be a problem anymore.
Ok, I take back my last statement... I found this nice comment in
Player.cpp where Gui::Init is called:
// Initialize gui (we need argc/argv for this)
// note that this will also initialize the renderer
// which is *required* during movie loading
_gui->init(argc, &argv);
Any comments on this if in the current code the renderer is still needed
during movie loading? IIRC some time ago there was a discussion about
render calls while parsing. Is this still up-to-date or were there some
changes in the meantime?
If it's absolute necessary to have the renderer created before the
parser starts it could be a solution to have an extra function to
retrieve the movie size, so the renderer and the gui already know about
the initial movie size.
For example:
get_movie_size(&width,&height)
_gui->init(argc, &argv, width, height)
load_movie()
Hannes
_______________________________________________
Gnash-dev mailing list
Gnash-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-dev