gdi32: Determine the virtual resolution dynamically if it hasn't been set.