]> git.saurik.com Git - apple/xnu.git/blobdiff - pexpert/i386/pe_init.c
xnu-2050.7.9.tar.gz
[apple/xnu.git] / pexpert / i386 / pe_init.c
index 21978a2a78831fe90be720a0a6b440427704cfe1..1ef6c7c7b3b21feb4fb15c29f4a9569ec3f8746f 100644 (file)
@@ -201,6 +201,15 @@ void PE_init_platform(boolean_t vm_initialized, void * _args)
         PE_state.video.v_scale      = (kBootArgsFlagHiDPI & args->flags) ? 2 : 1;
         strlcpy(PE_state.video.v_pixelFormat, "PPPPPPPP",
                sizeof(PE_state.video.v_pixelFormat));
+
+#ifdef  kBootArgsFlagHiDPI
+       if (args->flags & kBootArgsFlagHiDPI)
+                PE_state.video.v_scale = kPEScaleFactor2x;
+       else
+                PE_state.video.v_scale = kPEScaleFactor1x;
+#else
+       PE_state.video.v_scale = kPEScaleFactor1x;
+#endif
     }
 
     if (!vm_initialized) {