X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgraphicprimitives.cpp;fp=src%2Fgraphicprimitives.cpp;h=9dec2150b448b7568aeb3c3795703083b2e93fd6;hb=0c01fa32c7e0629ae61992e0419f03724fc18487;hp=dd9b480e54650eca6ce7553d3326276da7de3511;hpb=3ef71393f70213eb53db552605ae3c93f1303ee9;p=ttedit diff --git a/src/graphicprimitives.cpp b/src/graphicprimitives.cpp index dd9b480..9dec215 100755 --- a/src/graphicprimitives.cpp +++ b/src/graphicprimitives.cpp @@ -63,7 +63,7 @@ void Bezier(QPainter &p, IPoint p1, IPoint p2, IPoint p3) // // 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]; @@ -83,7 +83,7 @@ void DrawRoundDot(QPainter &p, int32 x, int32 y) // // 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]; @@ -99,10 +99,10 @@ void DrawSquareDot(QPainter &p, int32 x, int32 y) // // 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); @@ -116,7 +116,7 @@ void DrawSquareDotN(QPainter &p, int32 x, int32 y, uint32 n) // // 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);