liballeg / allegro5

The official Allegro 5 git repository. Pull requests welcome!
https://liballeg.org
Other
1.88k stars 284 forks source link

[5.0.7] al_get_window_position returns different values than expected #396

Open allebot opened 11 years ago

allebot commented 11 years ago

Originally reported by: shoozza

Original Ticket: alleg/bugs/375

al_get_window_position(...) returns the client rectangle x and y coordinates and not the actual window coordinates.When you do following to window with borders: al_get_window_position(display, &x, &y); al_set_window_position(display, x, y);

You will notice that it moves. It also happens with frameless windows when you run the program in a sandbox (tried avast! Free Antivirus autosandboxing).I only tested it on Windows with allegro 5.0.7 so I don't know if the same behavior applies to Linux and Mac.

allebot commented 11 years ago

Original comment by: elias-pschernig

I believe this is fixed in git as of revision 31ba84f.

allebot commented 11 years ago

Original comment by: elias-pschernig

ghost commented 9 years ago

Appears to be off by 2 pixels on Windows 10:

Actual value:599,334 Allegro says: 597,334