]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/windows/types/types.factor
core, basis, extra: Remove DOS line endings from files.
[factor.git] / basis / windows / types / types.factor
index 3490e8083d3792adb655ea475c949cd7746435ac..f735f6c5a52f693ce3597e51c3b68d398c4b29f5 100644 (file)
@@ -271,7 +271,7 @@ TYPEDEF: void* PAINTSTRUCT
 
 STRUCT: POINT
     { x LONG }
-    { y LONG } ; 
+    { y LONG } ;
 
 STRUCT: SIZE
     { cx LONG }
@@ -368,9 +368,9 @@ TYPEDEF: DWORD* LPCOLORREF
 : RGB ( r g b -- COLORREF )
     { 16 8 0 } bitfield ; inline
 : >RGB< ( COLORREF -- r g b )
-    [           HEX: ff bitand ]
-    [  -8 shift HEX: ff bitand ]
-    [ -16 shift HEX: ff bitand ] tri ;
+    [           0xff bitand ]
+    [  -8 shift 0xff bitand ]
+    [ -16 shift 0xff bitand ] tri ;
 
 : color>RGB ( color -- COLORREF )
     >rgba-components drop [ 255 * >integer ] tri@ RGB ;