nanogui: Blitting


Previous by date: 5 Jan 2000 01:35:24 -0000 Re: Blitting, Alan Cox
Next by date: 5 Jan 2000 01:35:24 -0000 Re: Fonts and keyboard support, Vidar Hokstad
Previous in thread: 5 Jan 2000 01:35:24 -0000 Re: Blitting, Alan Cox
Next in thread: 5 Jan 2000 01:35:24 -0000 blitting, Fergal Kelly

Subject: RE: Blitting
From: Greg Haerr ####@####.####
Date: 5 Jan 2000 01:35:24 -0000
Message-Id: <C1962B36D9BBD311B0F80060083DFEFBF12A@NBA-SLAM.CenSoft.COM>

: > characters for speed.  So, on a refresh, the current background
: > color is fillrect'ed to the display, then the non-space characters
: 
: That makes it flicker. You dont do that. 

Whoops

You just skip updating chars that where
: space and are a space now

Only one problem...  If the area really is in need of
refresh, someone's got to draw the background sometime.
Also this requires two copies of contents: before and after screen data.

So now I remember how to do it...  You add the
non-update area (area not included in the expose event)
to the current clipping region, _then_ fillrect to the background
color and don't draw space characters... No flicker, and 
only the screen parts that needed updating ever get painted

Greg


Previous by date: 5 Jan 2000 01:35:24 -0000 Re: Blitting, Alan Cox
Next by date: 5 Jan 2000 01:35:24 -0000 Re: Fonts and keyboard support, Vidar Hokstad
Previous in thread: 5 Jan 2000 01:35:24 -0000 Re: Blitting, Alan Cox
Next in thread: 5 Jan 2000 01:35:24 -0000 blitting, Fergal Kelly


Powered by ezmlm-browse 0.20.