Skip to content
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

Lua simulator height and monitor resolution height problem #10410

Open
Kiraffi opened this issue Feb 7, 2015 · 0 comments
Open

Lua simulator height and monitor resolution height problem #10410

Kiraffi opened this issue Feb 7, 2015 · 0 comments
Assignees
Labels

Comments

@Kiraffi
Copy link

Kiraffi commented Feb 7, 2015

There seems to be a problem when the simulators height in pixels is more than the height of resolution on monitor. At least those that have higher than 1080 pixel height, for example using portrait or retina display. This problem seems to happen for me at least on windows when using LUA simulator.

What happens is that when the resolution is for example 1536x2048, ipad retina resolution and on my monitors I have 1920x1080 resolution and on other monitor and 1600x900 resolution on other, the buttons hitboxes are wrong. From how I thought it would work, it seems that the buttons hitboxes are count from top to down, and they are drawn from bottom to up. Since the whole simulator doesn't fit in screen, it draws the simulator from bottom left corner, and I assume it does the hit box testing from topleft corner downwards. Cannot explain better what I think happens.

here is a link to the post I made to the official forums: http://discuss.cocos2d-x.org/t/i-think-there-is-a-bug-in-v3-4-cocos2d-x-when-simulators-height-in-pixels-is-bigger-than-monitors-resolutions-height-when-using-lua-and-simulator-on-windows/19805/2

Also something to note, if you zoom out, as in use smaller output like 50% and then the simulator fits in the screen, this bug doesn't happen.

@walzer walzer added this to the unconfirmed milestone Apr 27, 2015
@minggo minggo removed this from the unconfirmed milestone Aug 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants