Targeting reticle doesn't always draw properly #61
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Win10, commit
cb9f0edSometimes it works, sometimes i get this

I suspect this has to do with the hidden-from-view behavior or bad masking with certain tiles. Need to confirm.
Did further testing. This is a bug with the new UI scaling feature. The targeting mask/boundary looks like its dimensions are not being resized as well.
I confirm this behavior - same on linux build, with scaling = 2.00000
I think this is mostly fixed now, but there is still a small (and possibly unrelated glitch) where the top part of the reticle is clipped away when targeting topmost row of the world view:
I bet that glitch is related to the automatic scaling causing the very top of the reticle to be out of bounds, combined with draw call combining resulting in that piece not appearing... something to investigate.
Yesterday I changed my window mode preference while playing, and after I went from Small Window to Bottom Right Corner Fullscreen, the targeting line and reticle were clipped around where I think the terrain window would have been in Small Window mode. Maybe a clip_rect gets set and not updated when adjust_window_mode() happens. Not that this would explain everything mentioned in this issue -- just one reproducible instance of it (I need to try it again).