Fixed resolution change on Windows 8

Simple fix here: Apply changes before sending event, so values will be correct.