Кстати о птичках - рисовать адаптивно можно
C++ (Qt)
#include <QtWidgets>
class MyWidget : public QWidget {
public:
MyWidget( QWidget * parent = 0 ) : QWidget(parent)
{
setAttribute(Qt::WA_NoSystemBackground);
}
void paintEvent( QPaintEvent * )
{
static int theCount = 0;
static const int NUM_COLOR = 3;
static const Qt::GlobalColor theColor[NUM_COLOR] = { Qt::red, Qt::green, Qt::blue };
static const QPoint delta(15, 15);
QPainter painter(this);
painter.setPen(QColor(theColor[theCount]));
theCount = (theCount + 1) % NUM_COLOR;
QPoint pt = mapFromGlobal(QCursor::pos());
QRect R(pt - delta, pt + delta);
painter.drawEllipse(R);
}
void mousePressEvent( QMouseEvent * )
{
update();
}
};
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWidget * win = new MyWidget;
win->setWindowTitle("Click to paint");
win->show();
return app.exec();
}
Во всяком случае с пятеркой работает на OSX и Вындоуз