]> gitweb.factorcode.org Git - factor.git/commitdiff
SIZE struct
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 29 Aug 2009 22:08:25 +0000 (17:08 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 29 Aug 2009 22:08:25 +0000 (17:08 -0500)
basis/windows/types/types.factor
basis/windows/uniscribe/uniscribe.factor

index c62de58bcd64925ca79e0a18cac27e3b6ff42705..fb3ba7f0f5f9307a60cac8a54bc4f04ce885afb3 100755 (executable)
@@ -287,9 +287,9 @@ C-STRUCT: POINT
     { "LONG" "x" }
     { "LONG" "y" } ; 
 
-C-STRUCT: SIZE
-    { "LONG" "cx" }
-    { "LONG" "cy" } ; 
+STRUCT: SIZE
+    { cx LONG }
+    { cy LONG } ;
 
 C-STRUCT: MSG
     { "HWND" "hWnd" }
index 7dd630ca5b1ad5f3d27c50f8991657c56b16f033..1c1830fa022e9b49532a76c0961b8903677ac065 100755 (executable)
@@ -82,7 +82,7 @@ TUPLE: script-string < disposable font string metrics ssa size image ;
 : script-string-size ( script-string -- dim )
     ssa>> ScriptString_pSize
     dup win32-error=0/f
-    [ SIZE-cx ] [ SIZE-cy ] bi 2array ;
+    [ cx>> ] [ cy>> ] bi 2array ;
 
 : dc-metrics ( dc -- metrics )
     TEXTMETRICW <struct>