You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(renderer): correctly center rotated sprites, align collision check
Two fixes for rotated text rendering:
1. Overlay centering: revert pre-compensation in centred_sprite_transform
and instead compute the overlay origin in overlay_sprite_with_rotation
so the rotated output image's center lands where the unrotated
sprite's center would be. Formula:
origin = (x + w/2 - dst_w/2, y + h/2 - dst_h/2)
2. Collision check: rotate the sprite via rotate_sprite_expand_top_left
before checking against the bubble mask, matching the bilinear-
resampled pixels used by the actual render overlay path. Previously
rotated source pixels directly, which could miss edge pixels
introduced by bilinear interpolation.
Co-authored-by: DeepSeek V4 <deepseek@v4.ai>
0 commit comments