]> Shamusworld >> Repos - ttedit/blobdiff - src/graphicprimitives.cpp
Add ability to move points with the arrow keys.
[ttedit] / src / graphicprimitives.cpp
index dd9b480e54650eca6ce7553d3326276da7de3511..9dec2150b448b7568aeb3c3795703083b2e93fd6 100755 (executable)
@@ -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);