parent
859235ee97
commit
80c996a48c
3 changed files with 8 additions and 8 deletions
@ -1,10 +1,10 @@ |
||||
#include <QPainter> |
||||
#include "Game.h" |
||||
|
||||
void Game::draw(QPixmap *output) { |
||||
QPainter p(output); |
||||
double w = output->size().width(); |
||||
double h = output->size().height(); |
||||
void Game::draw(QPixmap &output) { |
||||
QPainter p(&output); |
||||
double w = output.size().width(); |
||||
double h = output.size().height(); |
||||
p.fillRect(w / 2 - 10, h / 2 - 10, 20, 20, Qt::red); |
||||
p.drawEllipse(0, 0, 20, 20); |
||||
} |
||||
|
Loading…
Reference in new issue