``swap drop`` is ``nip``.
parent
fec182d2d8
commit
87433a4585
|
@ -20,7 +20,7 @@ IN: formatting
|
||||||
{
|
{
|
||||||
{ CHAR: - [ [ 1 - ] dip remove-nth "-" prepend ] }
|
{ CHAR: - [ [ 1 - ] dip remove-nth "-" prepend ] }
|
||||||
{ CHAR: + [ [ 1 - ] dip remove-nth "+" prepend ] }
|
{ CHAR: + [ [ 1 - ] dip remove-nth "+" prepend ] }
|
||||||
[ drop swap drop ]
|
[ drop nip ]
|
||||||
} case
|
} case
|
||||||
] [ drop ] if
|
] [ drop ] if
|
||||||
] when ;
|
] when ;
|
||||||
|
|
|
@ -114,8 +114,8 @@ M: xinput-game-input-backend instance-id
|
||||||
if ;
|
if ;
|
||||||
|
|
||||||
M: xinput-game-input-backend read-controller
|
M: xinput-game-input-backend read-controller
|
||||||
XINPUT_STATE <struct> [ XInputGetState ] keep
|
XINPUT_STATE <struct> [ XInputGetState drop ] keep
|
||||||
swap drop fill-controller-state ;
|
fill-controller-state ;
|
||||||
|
|
||||||
M: xinput-game-input-backend calibrate-controller drop ;
|
M: xinput-game-input-backend calibrate-controller drop ;
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ ERROR: bad-tga-unsupported ;
|
||||||
read ; inline
|
read ; inline
|
||||||
|
|
||||||
: read-color-map ( type length elt-size -- color-map )
|
: read-color-map ( type length elt-size -- color-map )
|
||||||
pick 1 = [ 8 align 8 / * read ] [ 2drop f ] if swap drop ; inline
|
pick 1 = [ 8 align 8 / * read ] [ 2drop f ] if nip ; inline
|
||||||
|
|
||||||
: read-image-data ( width height depth -- image-data )
|
: read-image-data ( width height depth -- image-data )
|
||||||
8 align 8 / * * read ; inline
|
8 align 8 / * * read ; inline
|
||||||
|
|
Loading…
Reference in New Issue