Skip to content

Commit e6f3846

Browse files
committed
Graphical panic screen now covers whole screen
Previous design caused text context to go past the background rectangle.
1 parent 06d0baf commit e6f3846

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/kernel/kpanic.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ static void kpanic_gx_ui (const char* buffer)
2626
{
2727
if (KERNEL_PHASE_CHECK (KERNEL_PHASE_STATE_GRAPHICS_READY)) {
2828
KGraphicsArea* ga = (KGraphicsArea*)&g_kstate.gx_hwfb;
29-
UINT width = MIN (ga->width_px, CONFIG_GXMODE_FONT_WIDTH * MAX_VGA_COLUMNS);
30-
kgraphics_rect (ga, 0, 0, width, ga->height_px, COLOR_BG_BSOD);
31-
kgraphics_drawstring (ga, 10, 0, buffer, COLOR_WHITE, COLOR_BG_BSOD);
29+
kgraphics_rect (ga, 0, 0, ga->width_px, ga->height_px, COLOR_BG_BSOD);
30+
kgraphics_drawstring (ga, 0, 0, buffer, COLOR_WHITE, COLOR_BG_BSOD);
3231
} else {
3332
// This has to be a failure very early on.
3433
// Not sure what can we do here!!

0 commit comments

Comments
 (0)