[OSX] Wierd canvas positioning
BlitzMax Forums/MaxGUI Module/[OSX] Wierd canvas positioning
| ||
Does anyone know why this code produces two visible dots on Windows, but not on OS X (I only see the lower one - the upper one is outside the window)? Is this a bug? What makes it very odd is that a mouse EventY() yields a correct position, but if you plot a point using the EventY() position, it's wrong. Am I doing something wrong? |
| ||
Are you using BlitzMax v1.37? |
| ||
Yes. |
| ||
Hmmm... Can you post screenies please? |
| ||
Whoops. Try the code above again. I forgot to uncomment the SetGadgetLayout line. Here is a screenshot: ![]() As you can see the top dot is outside the frame of the canvas/panel. |
| ||
Is this just me? |
| ||
same here and i have also a bug with the imagedropsample if i make the windows smaller mfg |
| ||
Sorry guys - I can't test for a few weeks, as I'm away from home, and don't have access to my Mac. Maybe Skid could have a look if he has a free moment. |
| ||
Thanks Panno. Seb - no worries, take your time. And thanks. |
| ||
Ok, I've had a look at this and it seems to be that Mac OS X doesn't like graphics contexts to be created greater than the parent container. Redefining the initial canvas size to less than or equal to the client height seems to fix the issue. Unless anyone knows how we can work around this apparent Mac limitation, this might simply have to be something we have to work within. I'm guessing something needs to be tweaked in Brl.GlGraphics but I'm not sure what. |