Skip to content

Commit 81fbb88

Browse files
committed
fix: rotation angle range
1 parent a6ee092 commit 81fbb88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ PHP_METHOD(vtiful_format, rotation)
497497

498498
format_object *obj = Z_FORMAT_P(getThis());
499499

500-
if (obj->ptr.format) {
500+
if (obj->ptr.format && ((angle >= -90 && angle <= 90) || angle == 270)) {
501501
format_set_rotation(obj->ptr.format, angle);
502502
}
503503
}

0 commit comments

Comments
 (0)