summaryrefslogtreecommitdiff
path: root/src/wallclock.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-10-07 16:10:35 -0400
committerGitHub <noreply@github.com>2021-10-07 16:10:35 -0400
commita2655ba9ab82646a54f60abc6078df372179f8d4 (patch)
tree95b074a1a4d77d6cd77e413e1d6e72eb55b595b0 /src/wallclock.c
parente86d3410a1719fcbf62754bfda93a295aa7e0d57 (diff)
parent001a25e49cd6acdac89a62f4230aef80422e78f2 (diff)
Merge branch 'master' into doc-union
Diffstat (limited to 'src/wallclock.c')
-rw-r--r--src/wallclock.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wallclock.c b/src/wallclock.c
index 70888ac5f..6f9bc02ae 100644
--- a/src/wallclock.c
+++ b/src/wallclock.c
@@ -1029,8 +1029,8 @@ static void SpriteCB_MinuteHand(struct Sprite *sprite)
if (y > 128)
y |= 0xff00;
- sprite->pos2.x = x;
- sprite->pos2.y = y;
+ sprite->x2 = x;
+ sprite->y2 = y;
}
static void SpriteCB_HourHand(struct Sprite *sprite)
@@ -1049,8 +1049,8 @@ static void SpriteCB_HourHand(struct Sprite *sprite)
if (y > 128)
y |= 0xff00;
- sprite->pos2.x = x;
- sprite->pos2.y = y;
+ sprite->x2 = x;
+ sprite->y2 = y;
}
static void SpriteCB_PMIndicator(struct Sprite *sprite)
@@ -1077,8 +1077,8 @@ static void SpriteCB_PMIndicator(struct Sprite *sprite)
sprite->data[1]--;
}
}
- sprite->pos2.x = Cos2(sprite->data[1]) * 30 / 0x1000;
- sprite->pos2.y = Sin2(sprite->data[1]) * 30 / 0x1000;
+ sprite->x2 = Cos2(sprite->data[1]) * 30 / 0x1000;
+ sprite->y2 = Sin2(sprite->data[1]) * 30 / 0x1000;
}
static void SpriteCB_AMIndicator(struct Sprite *sprite)
@@ -1105,6 +1105,6 @@ static void SpriteCB_AMIndicator(struct Sprite *sprite)
sprite->data[1]--;
}
}
- sprite->pos2.x = Cos2(sprite->data[1]) * 30 / 0x1000;
- sprite->pos2.y = Sin2(sprite->data[1]) * 30 / 0x1000;
+ sprite->x2 = Cos2(sprite->data[1]) * 30 / 0x1000;
+ sprite->y2 = Sin2(sprite->data[1]) * 30 / 0x1000;
}