2
0
Эх сурвалжийг харах

* TSize is imported from the Windows unit on win32

florian 20 жил өмнө
parent
commit
9a25f58748

+ 10 - 2
rtl/objpas/types.pp

@@ -77,9 +77,12 @@ type
       0: (Left,Top,Right,Bottom : Longint);
       0: (Left,Top,Right,Bottom : Longint);
       1: (TopLeft,BottomRight : TPoint);
       1: (TopLeft,BottomRight : TPoint);
     end;
     end;
-{$endif}
+{$endif Win32}
   PRect = ^TRect;
   PRect = ^TRect;
 
 
+{$ifdef Win32}
+  TSize = Windows.TSize;
+{$else}
   TSize =
   TSize =
 {$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
 {$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
   packed
   packed
@@ -88,10 +91,12 @@ type
      cx : Longint;
      cx : Longint;
      cy : Longint;
      cy : Longint;
   end;
   end;
+{$endif Win32}
   PSize = ^TSize;
   PSize = ^TSize;
   tagSIZE = TSize;
   tagSIZE = TSize;
   SIZE = TSize;
   SIZE = TSize;
 
 
+
   TSmallPoint =
   TSmallPoint =
 {$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
 {$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
   packed
   packed
@@ -399,7 +404,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.9  2005-02-14 17:13:31  peter
+  Revision 1.10  2005-02-26 15:11:43  florian
+    * TSize is imported from the Windows unit on win32
+
+  Revision 1.9  2005/02/14 17:13:31  peter
     * truncate log
     * truncate log
 
 
 }
 }