//
// Draw a round dot (5x5, centered on [x, y])
//
-void DrawRoundDot(QPainter &p, int32 x, int32 y)
+void DrawRoundDot(QPainter &p, int32_t x, int32_t y)
{
QPoint pt[8];
//
// Draw a sqaure dot (5x5, centered on [x, y])
//
-void DrawSquareDot(QPainter &p, int32 x, int32 y)
+void DrawSquareDot(QPainter &p, int32_t x, int32_t y)
{
QPoint pt[4];
//
// Draw a sqaure dot (nxn, centered on [x, y])
//
-void DrawSquareDotN(QPainter &p, int32 x, int32 y, uint32 n)
+void DrawSquareDotN(QPainter &p, int32_t x, int32_t y, uint32_t n)
{
QPoint pt[4];
- uint32 offset = (n - 1) / 2;
+ uint32_t offset = (n - 1) / 2;
pt[0] = QPoint(x - offset, y - offset);
pt[1] = QPoint(x + offset, y - offset);
//
// Draw a round dot (nxn, centered on [x, y])
//
-void DrawRoundDotN(QPainter &p, int32 x, int32 y, uint32 n)
+void DrawRoundDotN(QPainter &p, int32_t x, int32_t y, uint32_t n)
{
int radius = (n / 2) + 1;
p.drawEllipse(x - radius, y - radius, n, n);