The many calls to refresh rect, drawtext (several time for the same
text), etc make me think we have to solve our
events problem.
I realised that this is caused by InvalWindowRect in
void AquaSalGraphics::RefreshRect(float lX, float lY, float lWidth,
float lHeight)
{
fprintf(stderr,"-->%s refresh %d - %d - %d - %d\n", __func__,
static_cast<int>(lX), static_cast<int>(lY), static_cast<int>(lWidth),
static_cast<int>(lHeight));
// Refresh windows rect content
#if 1
HIRect aHIRect;
aHIRect.origin.x = static_cast<int>(lX);
aHIRect.origin.y = static_cast<int>(lY);
aHIRect.size.width = static_cast<int>(lWidth);
aHIRect.size.height = static_cast<int>(lHeight);
OSStatus retVal = HIViewSetNeedsDisplayInRect
(mrView,&aHIRect,true);
if (!retVal)
fprintf(stderr, "FIXME: HIViewSetNeedsDisplayInRect returned
%d\n", (int) retVal);
#else
Rect aRect;
aRect.left = lX;
aRect.top = lY;
aRect.right = lX + lWidth;
aRect.bottom = lY + lHeight;
InvalWindowRect(mrWindow, &aRect);
#endif
}
The first case works much better.
But even with this, I can't get cursor to blinking. I had to disable
NWF with
export SAL_NO_NWF=1
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]