[interfacekit] Re: [Fwd: [Open-beos-cvs]CVS: current/src/servers/app/serverWinBorder.cpp,1.33,1.34]
- From: Adi Oanca <adioanca@xxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Mon, 05 Apr 2004 11:34:53 +0300
Alan Westbrook wrote:
Changed *to* a static rgb color?
Nope! Was already static.
Layer::Layer(BRect frame, const char *name, int32 token, uint32 resize,
uint32 flags, DisplayDriver *driver)
{
...
_boundsLeftTop.Set( 0.0f, 0.0f );
_name = new BString(name);
_layerdata = new LayerData();
fBackColor.SetColor(rand()%256, rand()%256, rand()%256);
...
}
-fDriver->FillRect(r, fBackColor);
+RGBColor c(128, 56, 98);
+fDriver->FillRect(r, c);
Why?
For debugging reasons. To see what region is to be updated.
You forgot about:
snooze(1000000);
otherwise you won't see the results.
Adi.
---------------------------------------------------------------
Trimite celor dragi cele mai frumoase felicitari de Paste prin
http://felicitari.acasa.ro
- Follow-Ups:
- References:
Other related posts:
- » [interfacekit] Re: [Fwd: [Open-beos-cvs]CVS: current/src/servers/app/serverWinBorder.cpp,1.33,1.34]
- » [interfacekit] Re: [Fwd: [Open-beos-cvs]CVS: current/src/servers/app/serverWinBorder.cpp,1.33,1.34]
-fDriver->FillRect(r, fBackColor); +RGBColor c(128, 56, 98); +fDriver->FillRect(r, c);
Why?