Mouse coordinates wrong when resizing minib3d canv
BlitzMax Forums/MiniB3D Module/Mouse coordinates wrong when resizing minib3d canv| 
 | ||
| Created a minib3d canvas in maxgui like shown in the sample.  Using mouse coordiantes for Camerapick() works fine until I resize the window, then the mouse is off by a few pixels.  The more I resize, the more the pointer is off.  Tried SetVirtualResolution, but get an error. edit: after further experiment I've discovered it is not the mouse that is wrong, but CameraPick() is selecting the wrong triangle after a resize. | 
| 
 | ||
| NM, figured this one out on my own.  Had subtracted 32 from the top of the window to make room for a custom icon bar I am going to create.  Decided to go with a panel instead and forgot to remove the -32 from the EVENT_WINDOWSIZE routine. | 
| 
 | ||
| Oh good. I hadn't got as far as testing this but was just going to suggest using EndGraphics/Graphics and reloading everything. Glad to know this isn't a bug/feature. |