Fix for primitive drawing previews on HiDPI screens.