nanogui: Simple Programming question....


Previous by date: 16 Jan 2007 04:13:48 +0000 Re: Compiling Nano-X, Greg Haerr
Next by date: 16 Jan 2007 04:13:48 +0000 Simple code question...., David Silvera
Previous in thread:
Next in thread:

Subject: Simple Programming question....
From: ####@####.####
Date: 16 Jan 2007 04:13:48 +0000
Message-Id: <1168956772.45acdd64797c5@www-mail.usyd.edu.au>


Hi all,

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

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Previous by date: 16 Jan 2007 04:13:48 +0000 Re: Compiling Nano-X, Greg Haerr
Next by date: 16 Jan 2007 04:13:48 +0000 Simple code question...., David Silvera
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.