Skip to content

scene/cursordelegate_opengl: undo ortho() flip y

Yifan Zhu requested to merge work/fanzhuyifan/cursor into master

Flip y axis before and after applying renderTarget.transform to undo ortho() flipping the y axis. Otherwise the cursor is invisible on rotated screen.

BUG: 479764 FIXED-IN: 6.0

A small math puzzle: what can be wrong if the algorithm works for Rotate0, Rotate180, FlipX, FlipY, but not Rotate90, Rotate270, Flip90, and Flip270 😂

Edited by Yifan Zhu

Merge request reports

Loading