diff options
Diffstat (limited to '')
-rw-r--r-- | layout.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/layout.h b/layout.h index 1f55967..a9b3917 100644 --- a/layout.h +++ b/layout.h @@ -73,6 +73,16 @@ struct Style { int deltaYFront; }; +enum { + SquareIncrement = 24 / 3, + SquareDeltaX = 2, + SquareDeltaY = 1, +}; +static const struct Style Flat = { 1, 0, 0, 0, 0 }; +static const struct Style Square = { + SquareIncrement, SquareDeltaX, SquareDeltaY, SquareDeltaX, SquareDeltaY, +}; + static inline void layoutStack( struct Layout *layout, SDL_Rect *rect, @@ -93,21 +103,4 @@ layoutStack( } } -enum { - SquareIncrement = 24 / 3, - SquareDeltaX = 2, - SquareDeltaY = 1, - - FanDownDeltaX = 0, - FanDownDeltaYBack = 3, - FanDownDeltaYFront = 15, -}; - -static const struct Style Square = { - SquareIncrement, SquareDeltaX, SquareDeltaY, SquareDeltaX, SquareDeltaY, -}; -static const struct Style FanDown = { - 1, FanDownDeltaX, FanDownDeltaYBack, FanDownDeltaX, FanDownDeltaYFront, -}; - #endif |