Update pixel_device_ratio before painting instead on app startup
Only used for adding a few pixels to text bounds. So if dragging the app from a low res to a hires display, that could cause text being tuncated.