Browse Source

tosunits: provide alternative names for members of GRECT

Thorsten Otto 3 years ago
parent
commit
2b829480e1
1 changed files with 9 additions and 4 deletions
  1. 9 4
      packages/tosunits/src/aestypes.inc

+ 9 - 4
packages/tosunits/src/aestypes.inc

@@ -276,10 +276,15 @@ type
 type
 type
   PGRECT = ^TGRECT;
   PGRECT = ^TGRECT;
   TGRECT = record
   TGRECT = record
-    x: smallint;   {* X-coordinate *}
-    y: smallint;   {* Y-coordinate *}
-    w: smallint;   {* Width        *}
-    h: smallint;   {* Height       *}
+    case integer of 
+     0: (x: smallint;     {* X-coordinate *}
+         y: smallint;     {* Y-coordinate *}
+         w: smallint;     {* Width        *}
+         h: smallint);    {* Height       *}
+     1: (g_x: smallint;   {* X-coordinate *}
+         g_y: smallint;   {* Y-coordinate *}
+         g_w: smallint;   {* Width        *}
+         g_h: smallint);  {* Height       *}
   end;
   end;
 
 
 { kinds, as used by wind_create() }
 { kinds, as used by wind_create() }