You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
procdraw(obj: Image, pos: Position) =var rect = sdl.Rect(x: pos.x, y: pos.y, w: obj.width, h: obj.height)
ifnot obj.renderer
.renderCopyEx(obj.texture,
nil, addr(rect),
angle = pos.rotation,
center =nil,
FLIP_NONE) ==0:
sdl.logWarn(LOG_CATEGORY_VIDEO, # <- This statement escaped the if block!"Can't render image1: %s",
sdl.getError())
Expected Output
I don't know what I expected, but at least nimpretty shouldn't break it. 👽
$ nim -v
Nim Compiler Version 1.0.2 [Windows: i386]
Compiled at 2019-10-22
Copyright (c) 2006-2019 by Andreas Rumpf
git hash: 193b3c66bbeffafaebff166d24b9866f1eaaac0e
active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
Example
nimpretty input:
Current Output
Expected Output
I don't know what I expected, but at least nimpretty shouldn't break it. 👽
The text was updated successfully, but these errors were encountered: