void Viewer::IncurTextDisplayDamage (TextDisplay* td, Painter* p) { Coord l, b, r, t; td->Bounds(l, b, r, t); --l; --b; ++r; ++t; Transformer* rel = p->GetTransformer(); if (rel != nil) rel->TransformRect(l, b, r, t); _damage->Incur(l, b, r, t); }
void Graphic::transformRect ( float x0, float y0, float x1, float y1, float& nx0, float& ny0, float& nx1, float& ny1, Graphic* g ) { Transformer* t = (g == nil) ? GetTransformer() : g->GetTransformer(); nx0 = x0; ny0 = y0; nx1 = x1; ny1 = y1; if (t != nil) { t->TransformRect(nx0, ny0, nx1, ny1); } }