]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/windows/types/types.factor
use radix literals
[factor.git] / basis / windows / types / types.factor
index 3490e8083d3792adb655ea475c949cd7746435ac..f7a9db1b8164f0cb38f14d7cc83fc0af6014dcaa 100644 (file)
@@ -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 ;