Skip to content

Commit

Permalink
fix: rotation angle range
Browse files Browse the repository at this point in the history
  • Loading branch information
gyalogmixi committed Oct 18, 2024
1 parent a6ee092 commit 81fbb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ PHP_METHOD(vtiful_format, rotation)

format_object *obj = Z_FORMAT_P(getThis());

if (obj->ptr.format) {
if (obj->ptr.format && ((angle >= -90 && angle <= 90) || angle == 270)) {
format_set_rotation(obj->ptr.format, angle);
}
}
Expand Down

0 comments on commit 81fbb88

Please sign in to comment.