-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with rendering to proper sprite coordinates #3334
Comments
Totally possible that this if from a lower-level library like OpenFL, but I found this during my prototyping for a Haxe Winter Jam project and haven't seen anyone else mention a similar issue. My HashLink version is a little outdated since I could only get the version that comes with lime to work on my Mac, but it happens on my Linux desktop and through the native target as well. Any info would be great! |
Confirmed this is an OpenFL issue. I reverted to 9.4.0 from 9.4.1 and the gap is gone. Will try to make an issue in OpenFL repo instead. |
Okay, now I am unsure. I tried to make a representative example with pure OpenFL and, even on 9.4.1, there is no visible gap. Could this mean there is a bug between OpenFL 9.4.0 and 9.4.1 wherever HaxeFlixel manages the abstraction? Don't have enough knowledge with these frameworks to guess, but if someone could double-check me, that'd be great. Here is the link to the OpenFL minimum example: https://github.com/kfjustis/SpriteOffsetBugOpenFL Versions when running OpenFL:
Maybe the way I handled the scaling manually is not representative of what Flixel does. |
I appreciate you doing all this work, I'll do a deep dive over the weekend and pass the buck to openfl is this is, in fact, a problem on their end. I'll be able to try Mac and Windows, too |
Have you checked |
@DetectiveBaldi Those settings did not seem to make a difference for me. I also tried them after setting |
Code snippet reproducing the issue:
Minimum project if you want to clone and run quickly: https://github.com/kfjustis/SpriteOffsetBug
Observed behavior: The right side of the sprite rect is not exactly flush with the edge of the play area after maximizing the game window. By maximize, I mean both resizing the window and true fullscreen.
After launching the game via
lime test hl
:After maximizing the window via double-clicking the title bar:
Cropped and zoomed in to show the extremely tiny offset issue (some pink comes through between the blue sprite and the black bar on the right):
Expected behavior: There should be no gap between the right side of the sprite and the black bar.
The text was updated successfully, but these errors were encountered: