 	borderWidth = parent.borderWidth
 	borderWidth ?= 0
 
-	x = (parent.width / 2) - (layer.width / 2) - borderWidth + offset
-	y = (parent.height / 2) - (layer.height / 2) - borderWidth + offset
+	x = pixelRound((parent.width / 2) - (layer.width / 2) - borderWidth + offset)
+	y = pixelRound((parent.height / 2) - (layer.height / 2) - borderWidth + offset)
 
 	return x if property is "x"
 	return y if property is "y"

	throw Error "Align.left only works for x" unless property is "x"
	parent = Screen
	parent = layer.parent if layer.parent
	return 0 + offset

right = (layer, property, offset=0) ->
	throw Error "Align.right only works for x" unless property is "x"

pixelRound = parseInt

center = (layer, property, offset=0) ->

	parent = Screen
