Unable to draw rect at 0,0 when window maximised on MacOS #2135
-
Hi! I'm new to ebiten. I'm trying to draw an image at 0,0. This works fine when the window is like it is in the examples, however when the window is maximised and I draw at (what I think should be) 0,0, there's a large margin on the left. With Please note that I'm moving the mouse to the top of the screen here to show you where the box starts Here's the ebiten code:
And the draw rect code (I've used multiple libraries and I don't believe it's related, could do it by hand too) :
Why can't I display a rectangle at 0,0 when full-screened? Am I doing something wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
It's because the aspect ratios (the actual screen size and the returning value of |
Beta Was this translation helpful? Give feedback.
It's because the aspect ratios (the actual screen size and the returning value of
Layout
) don't match. What is the implementation ofLayout
? Thanks,