void uiDrawTransform(uiDrawContext *c, uiDrawMatrix *m) { BAffineTransform a; m2a(m, &a); // see windows/draw.c a.Multiply(c->view->Transform()); c->view->SetTransform(a); }
void uiDrawMatrixMultiply(uiDrawMatrix *dest, uiDrawMatrix *src) { BAffineTransform c; BAffineTransform d; m2a(dest, &c); m2a(src, &d); c.Multiply(d); a2m(&c, dest); }