/shark/trunk/drivers/fb/vgastate.c |
---|
367,7 → 367,10 |
if (saved == NULL) |
return 1; |
memset (saved, 0, sizeof(struct regstate)); |
(struct regstate *) state->vidstate = saved; |
// changed for gcc4 compatibility |
//(struct regstate *) state->vidstate = saved; |
state->vidstate = (struct regstate *) (saved); |
if (state->flags & VGA_SAVE_CMAP) { |
saved->vga_cmap = vmalloc(768); |