|
Re: Photon performance slow when using PtRealizeWidget for PtWindow widgets
|
08/31/2009 11:15 AM
post36966
|
Re: Photon performance slow when using PtRealizeWidget for PtWindow widgets
My CPU is the St Miccro STPC Atlas with a built in Display Controller. I am not running pwm. It there anything special
about PtWindow, that might keep me from setting negative coordinates? Here is how I create the widget:
size.h=480;
size.w=640;
hide.x=-640;
hide.y=-480;
show.x=0;
show.y=0;
/* increase the draw buffer */
PgSetDrawBufferSize( 0x8000 );
/* create a window */
PtSetArg( &arg[0], Pt_ARG_POS, &hide, 0 );
PtSetArg( &arg[1], Pt_ARG_DIM, &size, 0 );
PtSetArg( &arg[2], Pt_ARG_WINDOW_RENDER_FLAGS, Ph_WM_RENDER_ASAPP, 0);
window = PtCreateWidget( PtWindow, Pt_NO_PARENT, 3, arg );
|
|
|