3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-01 07:42:18 +00:00

Update vgastate.c

This commit is contained in:
Raziel K. Crowe 2022-04-04 14:53:23 +05:00 committed by GitHub
parent 2a76020689
commit c62bd33d58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@
struct regstate {
__u8 *vga_font0;
__u8 *vga_font1;
__u8 *vga_font2;
__u8 *vga_text;
__u8 *vga_cmap;
__u8 *attr;
@ -438,6 +439,14 @@ int save_vga(struct vgastate *state)
}
}
/*
if (state->flags & VGA_SAVE_FONT2) {
saved->vga_font2 = vmalloc(state->memsize);
if (!saved->vga_font2) {
iounmap(fbbase);
vga_cleanup(state);
return 1;
}
}
* Save 8K at plane0[0], and 8K at plane1[16K]
*/
if (state->flags & VGA_SAVE_TEXT) {