Fri 08 Dec 2006 12:56:30 AM UTC, comment #6:
I am sorry. I can not update my source from the anonymous cvs for weeks. I could access it before. I don't know why.
I have tried the instructions from https://savannah.gnu.org/cvs/?group=gnash
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/gnash co gnash
and from http://www.gnu.org/software/gnash/
export CVS_RSH="ssh"
cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/gnash co gnash
the server addresses are different. But I cann't update from both of them.
Yes, I could view the sources from the web repository. But it's too difficult to download all the files one by one:)
|
Thu 07 Dec 2006 03:43:51 AM UTC, comment #4:
>>That change doesn't fix the bug here, does it do it there ?
Yes, I also tried the program under linux. After I initialized the xscale and yscale, the flash movie can play normally, otherwize a black window.
|
Fri 01 Dec 2006 04:03:39 AM UTC, comment #1:
Confirm.
This is probabley because of the xscale and yscale intialization
problem.
//file render_handler_agg.cpp
render_handler_agg(int bits_per_pixel)
:
// Initialization list
memaddr(NULL),
memsize(0),
xres(1),
yres(1),
bpp(bits_per_pixel),
xscale(1.0), //should be xscale(1.0/20),
yscale(1.0), //should be yscale(1.0/20),
m_enable_antialias(true),
m_pixf(NULL)
{
}
the set_scale is as follows:
void set_scale(float new_xscale, float new_yscale) {
xscale = new_xscale/20.0f;
yscale = new_yscale/20.0f;
}
The xscale/yscale seems never initialized before you update the
render_handler_agg constructor. When I use the sdl/agg, I should
aways add an extra intialization. So I wonder dose it ever work:)
//file SDL.cpp
bool
SDLGui::init(int argc, char **argv[])
{
...
...
_glue.init(argc, argv);
_renderer = _glue.createRenderHandler(_depth);
//the scale should be intialized, is it proper to do it here?
_renderer->set_scale(1.0, 1.0); //init the scale
return true;
}
|