painter->setBrush(Qt::NoBrush);
}
+void DrawingWindow::drawText(int x, int y, const char *text)
+{
+ QRect r(image->rect());
+ r.moveTo(x, y);
+ safeLock(imageMutex);
+ painter->drawText(r, 0, text, &r);
+ dirty(r);
+ safeUnlock(imageMutex);
+}
+
bool DrawingWindow::sync(unsigned long time)
{
bool synced;
void DrawingWindow::dirty(int x1, int y1, int x2, int y2)
{
QRect r;
- r.setCoords(x1, y1, x2, y2); // xy2 + 1 ???
+ r.setCoords(x1, y1, x2, y2);
dirty(r.normalized());
}