Lathander Posted July 13, 2020 Share Posted July 13, 2020 If anyone else is as annoyed at the wobbly cursor as I was.. you can fix it inside Client Entity.cs by adding Math.Ceiling to destRectangle.X = (int)Math.Ceiling(GetCenterPos().X) destRectangle.Y = (int)Math.Ceiling(GetCenterPos().Y) Â under the DrawTarget function. Â I'd submit a fix for bugs but I am not at my normal computer and I do not have access for a while. Damn that wobbly cursor drove me nuts, surprised I took this long to finally fix it. wishy, BabyLoves, Shenmue and 5 others 7 1 Link to comment Share on other sites More sharing options...
Shenmue Posted July 13, 2020 Share Posted July 13, 2020 4 hours ago, Lathander said: If anyone else is as annoyed at the wobbly cursor as I was.. you can fix it inside Client Entity.cs by adding Math.Ceiling to destRectangle.X = (int)Math.Ceiling(GetCenterPos().X) destRectangle.Y = (int)Math.Ceiling(GetCenterPos().Y) Â under the DrawTarget function. Â I'd submit a fix for bugs but I am not at my normal computer and I do not have access for a while. Damn that wobbly cursor drove me nuts, surprised I took this long to finally fix it. Would be cool to see before/after, because the cursor looked fine to me. I guess I can always try that later. Link to comment Share on other sites More sharing options...
Lathander Posted July 13, 2020 Author Share Posted July 13, 2020 8 minutes ago, Shenmue said: Would be cool to see before/after, because the cursor looked fine to me. I guess I can always try that later. Â So, it might not be as obvious with the default intersect cursor. That said, those things stick out to me. Â Here's before and after. Â Â Â The reason Math.Ceiling works, is because if your graphics are divisible by 2, I am assuming it is attempting to chose one of the two center pixels to place the cursor, and that changes because it isn't a central pixel. By using Math.Ceiling it chooses the higher of the two pixels. rpgscroll, Kamus and Shenmue 3 Link to comment Share on other sites More sharing options...
rpgscroll Posted July 14, 2020 Share Posted July 14, 2020 1 hour ago, Lathander said: Â So, it might not be as obvious with the default intersect cursor. That said, those things stick out to me. Â Here's before and after. Â Â Â The reason Math.Ceiling works, is because if your graphics are divisible by 2, I am assuming it is attempting to chose one of the two center pixels to place the cursor, and that changes because it isn't a central pixel. By using Math.Ceiling it chooses the higher of the two pixels. Â Wow that's a great change! Thanks for sharing Link to comment Share on other sites More sharing options...
Shenmue Posted July 14, 2020 Share Posted July 14, 2020 3 hours ago, Lathander said: Â So, it might not be as obvious with the default intersect cursor. That said, those things stick out to me. Â Here's before and after. Â Â Â The reason Math.Ceiling works, is because if your graphics are divisible by 2, I am assuming it is attempting to chose one of the two center pixels to place the cursor, and that changes because it isn't a central pixel. By using Math.Ceiling it chooses the higher of the two pixels. Â Second one is better indeed haha Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now