I'd be amazed to see a resolution/dpi combo that results in a 1 pixel error from rounding and equally amazed that it isn't far from the same combo that would cause a rounding error outside of a browser.
A native application does not generally have these issues because by nature of being native it was built for the form factor it is being used on.
I'm not even sure on Windows there is a way to render anything