nanogui: Simple code question....
Subject:
Simple code question....
From:
"David Silvera" ####@####.####
Date:
16 Jan 2007 00:49:57 +0000
Message-Id: <BAY102-DAV749132000EC354BCB6A3594B40@phx.gbl>
Hi,
I'm new in nano-X and I'm trying to write a simple code to paint some
figures only using a circle...
My code looks like this (for a line):
For (x=1;x<40;x++)
{
GrFillEllipse (GR_ROOT_WINDOW_ID, gc, x,y, 8,8);
GrGetNextEventTimeout (&event,delay);
}
..... and some different coordinates for other figures.
The main problem is that I'm running this code in my linux machine and it
works fine... but when I try to run it in a pxa255 board with framebuffer it
blanks the screen after painting each circle... so instead of painting a
line at "delay" speed I have a circle moving along the screen at "delay
speed"...
Why it works different? What am I doing wrong?
Hope someone can help me,
Cheers,
David