nanogui: GrArea and colours


Previous by date: 2 Nov 1999 14:07:06 -0000 Re: Microwindows architecture explained, Thomas Stewart
Next by date: 2 Nov 1999 14:07:06 -0000 Re: GrArea and colours, Greg Haerr
Previous in thread:
Next in thread: 2 Nov 1999 14:07:06 -0000 Re: GrArea and colours, Greg Haerr

Subject: GrArea and colours
From: Richard Kvalsvik ####@####.####
Date: 2 Nov 1999 14:07:06 -0000
Message-Id: <381EEE37.8AC8F23A@crusaders.no>

 Trying to write a 24-bit picture to a window here using RGB(); 

I think I am doing something terrible wrong, because it most certainly
crash.
But this wasn't documented anywhere, so I dont really know what to do.
here goes :


......loop......

     pixels[ j ] = NANOX_RGB( line[ j * 3 ], line[ (j * 3) +1 ], line[
(j * 3) +2 ]);

......loop end......


     GrArea( Nanox_GetWindowID(), Nanox_GetGCID(), x, y, width, height,
pixels  );


this seem to crash a lot most of the times.... what did I miss out ?

-- 	

Richard Kvalsvik

Previous by date: 2 Nov 1999 14:07:06 -0000 Re: Microwindows architecture explained, Thomas Stewart
Next by date: 2 Nov 1999 14:07:06 -0000 Re: GrArea and colours, Greg Haerr
Previous in thread:
Next in thread: 2 Nov 1999 14:07:06 -0000 Re: GrArea and colours, Greg Haerr


Powered by ezmlm-browse 0.20.