MCPcopy Create free account
hub / github.com/NetHack/NetHack / paintPoint

Method paintPoint

outdated/win/Qt3/tileedit.cpp:209–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void TrivialTileEditor::paintPoint(QPainter& painter, QPoint p)
210{
211 QPoint p1 = screenPoint(p);
212 QPoint p2 = screenPoint(p+QPoint(1,1));
213 QColor c = img.color(img.scanLine(p.y())[p.x()]);
214 painter.fillRect(QRect(p1,p2-QPoint(1,1)), c);
215}
216
217void TrivialTileEditor::mousePressEvent(QMouseEvent* e)
218{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected