[interfacekit] Re: [Fwd: [Open-beos-cvs]CVS: current/src/servers/app/serverWinBorder.cpp,1.33,1.34]

ah, thanks for the explanation!

Alan

Adi Oanca wrote:

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





Other related posts: