Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » A5 Fullscreen Vs Windowed

This thread is locked; no one can reply to it. rss feed Print
 1   2 
A5 Fullscreen Vs Windowed
Edgar Reynaldo
Major Reynaldo
May 2007
avatar

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.

AceBlkwell
Member #13,038
July 2011
avatar

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 


Go to: