![]() |
|
This thread is locked; no one can reply to it.
![]() ![]() |
1
2
|
A5 Fullscreen Vs Windowed |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Pet peeve of mine - C++ style casts are useless and C style casts should be preferred except in the case of reinterpret_cast, which actually does something. But DanielH is right. You need to untransform the mouse coordinates to your buffer. You can do that with an inverse transform or just like DanielH showed you. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
AceBlkwell
Member #13,038
July 2011
![]() |
Thanks guys. I was working on something similar. IE dividing display H and W by buffer, then multiplying button coordinates X/Y by those results. Works well but didn't look as smooth or concise I'll see if I can't merge the two ideas. |
|
1
2
|