From 2d7ce895aa21b800f1793cc7b9ca80aca5ed0092 Mon Sep 17 00:00:00 2001 From: Namonay Date: Mon, 17 Jun 2024 18:56:56 +0200 Subject: [PATCH] fixed multi screen --- sources/drivers/vga/vga.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sources/drivers/vga/vga.zig b/sources/drivers/vga/vga.zig index ec10c95..e388ad5 100644 --- a/sources/drivers/vga/vga.zig +++ b/sources/drivers/vga/vga.zig @@ -61,14 +61,9 @@ var vga = VGA pub fn changeScreen(targetScreen: u8) void { - if (targetScreen > 7) - return; - for (vga.buffer, 0..) |val, i| vga.screensArray[vga.currentScreen].buffer[i] = val; - vga.screensArray[vga.currentScreen].copy(vga.row, vga.column, vga.color); - vga.screensArray[vga.currentScreen].row = vga.row; vga.screensArray[vga.currentScreen].column = vga.column; vga.screensArray[vga.currentScreen].color = vga.color;