SIZE struct

db4
Doug Coleman 2009-08-29 17:08:25 -05:00
parent ccb20bd00e
commit 3ecb3a85db
2 changed files with 4 additions and 4 deletions

View File

@ -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" }

View File

@ -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>