Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » al_get_window_position doesn't work

This thread is locked; no one can reply to it. rss feed Print
al_get_window_position doesn't work
Matej Å tajduhar
Member #15,084
April 2013

EDIT: It works perfectly, guess what that makes me:
{"name":"dumbass.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/8\/e8f0619162a1983de185c48b12149673.jpg","w":446,"h":471,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/8\/e8f0619162a1983de185c48b12149673"}dumbass.jpg

Thanks to the guy below! xD

(I'm too embarassed to leave this visible.)

Trent Gamblin
Member #261
April 2000
avatar

What are you expecting? Are you moving the window? If not then it would give the same number each time. If you're trying to find the mouse coordinate in the window use al_get_mouse_xy (EDIT: that function doesn't exist, you need al_get_mouse_state.) Otherwise I don't see how it's related to that other thread (which was fixed, at least a fix was committed but if it's wrong we'd like to know.)

Go to: