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

Window position on different platforms #4

Closed
AGulev opened this issue May 4, 2017 · 5 comments
Closed

Window position on different platforms #4

AGulev opened this issue May 4, 2017 · 5 comments

Comments

@AGulev
Copy link
Collaborator

AGulev commented May 4, 2017

On macos window position sets from left down corner.
for example

 	defos.set_window_size(-1,-1,800,600)

2017-05-04_09-38-25

As I know on windows position starts from top-left corner? Am I right?

I think we should resolve this issue.
We can identify what exactly screen point point we should consider like a 0,0?
And then implement the same behavior for all platforms.

@subsoap
Copy link
Owner

subsoap commented May 4, 2017

Good idea. Yes, Windows begins at top left. Should probably switch that one to macOS style.

@AGulev
Copy link
Collaborator Author

AGulev commented May 4, 2017

Or, we can switch to windows style. Maybe top left corner more native and understandable?

@subsoap
Copy link
Owner

subsoap commented May 4, 2017

You're probably right as the Windows way is the way monitor hardware works, but it would also give consistency within Defold positioning to do it the macOS way.

@AGulev
Copy link
Collaborator Author

AGulev commented May 4, 2017

We have to choose our side =)

@AGulev
Copy link
Collaborator Author

AGulev commented Oct 7, 2017

I made changes in mac version, now coordinates starts from top left corner like on Windows PC

@AGulev AGulev closed this as completed Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants