+ // Create frame and check and handle default position and size
+ int realx,
+ realy;
+
+ // WX has no set default position - the carbon port caps the low
+ // end at 20, 50. Here we do the same, except instead of setting
+ // it to 20 and 50, we set it to 100 and 100 if the values are too low
+ if (pos.x < 20)
+ realx = 100;
+ else
+ realx = pos.x;
+
+ if (pos.y < 50)
+ realy = 100;
+ else
+ realy = pos.y;
+
+ int realw = WidthDefault(size.x);
+ int realh = HeightDefault(size.y);
+