PtClock Bug

Greetings,

Setting the seconds of PtClock_t through the Pt_ARG_CLOCK_SECOND actually
changes the minute. That is, the minute hand moves.

Is there a workaround for this? Has it possibly been fixed in Patch A?

]{ristoph

Greetings,

Is there a workaround for this? Has it possibly been fixed in Patch A?

I found a workaround ( it’s a bit of hack but it does work ) …

// the variable ‘second’ is a short set to the new second value
short* old_second = 0;

PtGetResource ( ABW_clock, Pt_ARG_CLOCK_SECOND, &old_second, 0 );

if ( old_second )
{
*old_second = second;
PtDamageWidget ( ABW_clock );
}

]{