Skip to content

Commit

Permalink
fixed multi screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Namonay committed Jun 17, 2024
1 parent 5359ffe commit 2d7ce89
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sources/drivers/vga/vga.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d7ce89

Please sign in to comment.