summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FrameRender/P_TransformRotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FrameRender/P_TransformRotate.c b/FrameRender/P_TransformRotate.c
index 562c814..458bf5c 100644
--- a/FrameRender/P_TransformRotate.c
+++ b/FrameRender/P_TransformRotate.c
@@ -5,8 +5,8 @@
#include <string.h>
void TransformRotate_callback(TransformRotate* self, struct PixelContext* pc) {
- u32 xR = pc->x * cos(self->angle) + pc->y * sin(self->angle);
- u32 yR = - pc->x * sin(self->angle) + pc->y * cos(self->angle);
+ i32 xR = pc->x * cos(self->angle) + pc->y * sin(self->angle);
+ i32 yR = - pc->x * sin(self->angle) + pc->y * cos(self->angle);
pc->x = xR;
pc->y = yR;