*/
struct vc_info vinfo;
-/* if panicDialogDesired is true then we use the panic dialog when its */
-/* allowed otherwise we won't use the panic dialog even if it is allowed */
-boolean_t panicDialogDesired;
void noroot_icon_test(void);
static void
gc_update_color(int color, boolean_t fore)
{
+ assert(gc_ops.update_color);
+
gc_color_code = COLOR_CODE_SET(gc_color_code, color, fore);
gc_ops.update_color(color, fore);
}
if( vc_progress_enable) {
- KERNEL_DEBUG_CONSTANT(0x7020008, vc_progress_count, 0, 0, 0, 0);
-
vc_progress_count++;
if( vc_progress_count >= vc_progress->count) {
vc_progress_count = 0;
#else
new_vinfo.v_type = 0;
#endif
- new_vinfo.v_scale = boot_vinfo->v_scale;
+ unsigned int scale = (unsigned int)boot_vinfo->v_scale;
+ if (scale == kPEScaleFactor1x )
+ new_vinfo.v_scale = kPEScaleFactor1x;
+ else if (scale == kPEScaleFactor2x)
+ new_vinfo.v_scale = kPEScaleFactor2x;
+ else /* Scale factor not set, default to 1x */
+ new_vinfo.v_scale = kPEScaleFactor1x;
+
}
if (!lastVideoMapped)
switch ( op )
{
case kPEGraphicsMode:
- panicDialogDesired = TRUE;
gc_graphics_boot = TRUE;
gc_desire_text = FALSE;
break;
case kPETextMode:
- panicDialogDesired = FALSE;
disable_debug_output = FALSE;
gc_graphics_boot = FALSE;
break;
case kPETextScreen:
if ( console_is_serial() ) break;
- panicDialogDesired = FALSE;
disable_debug_output = FALSE;
if ( gc_acquired == FALSE )
{
gc_acquired = FALSE;
gc_desire_text = FALSE;
gc_enable( FALSE );
+ if ( gc_graphics_boot == FALSE ) break;
+
vc_progress_set( FALSE, 0 );
#if !CONFIG_EMBEDDED
vc_enable_progressmeter( FALSE );