Author: fireball Date: Fri Jul 13 19:07:40 2007 New Revision: 27631
URL: http://svn.reactos.org/svn/reactos?rev=27631&view=rev Log: - OLPC-specific hacks (enabling debug-output to screen, changing hardcoded 640x480 to olpc's display resolution).
Modified: branches/olpc/ntoskrnl/inbv/inbv.c
Modified: branches/olpc/ntoskrnl/inbv/inbv.c URL: http://svn.reactos.org/svn/reactos/branches/olpc/ntoskrnl/inbv/inbv.c?rev=27... ============================================================================== --- branches/olpc/ntoskrnl/inbv/inbv.c (original) +++ branches/olpc/ntoskrnl/inbv/inbv.c Fri Jul 13 19:07:40 2007 @@ -11,7 +11,7 @@ KIRQL InbvOldIrql; INBV_DISPLAY_STATE InbvDisplayState; BOOLEAN InbvBootDriverInstalled; -BOOLEAN InbvDisplayDebugStrings; +BOOLEAN InbvDisplayDebugStrings = TRUE; INBV_DISPLAY_STRING_FILTER InbvDisplayFilter; ULONG ProgressBarLeft, ProgressBarTop; BOOLEAN ShowProgressBar; @@ -238,17 +238,26 @@ /* Check if a filter is installed */ if (InbvDisplayFilter) InbvDisplayFilter(&String);
- /* Acquire the lock */ - InbvAcquireLock(); - - /* Make sure we're installed and display the string */ - if (InbvBootDriverInstalled) VidDisplayString((PUCHAR) String); - - /* Call Headless (We don't support headless for now) - HeadlessDispatch(DISPLAY_STRING); */ - - /* Release the lock */ - InbvReleaseLock(); + if (InbvBootDriverInstalled) + { + /* Acquire the lock */ + InbvAcquireLock(); + + /* Make sure we're installed and display the string */ + VidDisplayString((PUCHAR) String); + + /* Call Headless (We don't support headless for now) + HeadlessDispatch(DISPLAY_STRING); */ + + /* Release the lock */ + InbvReleaseLock(); + } + else + { + /* We're still allowed to print very-early debug messages. + Be warned, this is a HACK! */ + VidDisplayString((PUCHAR) String); + }
/* All done */ return TRUE; @@ -577,7 +586,7 @@ }
/* Set the scrolling region */ - InbvSetScrollRegion(32, 80, 631, 400); + InbvSetScrollRegion(32, 80, 1191, 820);
/* Make sure we have resources */ if ((Bitmap) && (Header)) @@ -615,7 +624,7 @@ if (InbvGetDisplayState() == INBV_DISPLAY_STATE_OWNED) { /* Clear the screen */ - VidSolidColorFill(0, 0, 639, 479, 0); + VidSolidColorFill(0, 0, 1199, 899, 0); }
/* Reset progress bar and lock */