summaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-04-14 20:22:18 -0400
committerKevin O'Connor <kevin@koconnor.net>2012-04-14 20:22:18 -0400
commita0263083cb4cda172832fbc916dc1417ee930574 (patch)
tree6fa3406ee15494ffc4f1f3fb2a228574a7bcda13 /vgasrc
parent9c6635bd48d39a1d17d0a73df6e577ef6bd0037c (diff)
downloadqemu-seabios-a0263083cb4cda172832fbc916dc1417ee930574.tar.gz
Misc compile fixes for gcc v3.4.rel-1.7.0
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vgafb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vgasrc/vgafb.c b/vgasrc/vgafb.c
index a75bc81..233f3d5 100644
--- a/vgasrc/vgafb.c
+++ b/vgasrc/vgafb.c
@@ -194,6 +194,8 @@ vgafb_scroll(int nblines, int attr, struct cursorpos ul, struct cursorpos lr)
case MM_PACKED:
scroll_lin(vmode_g, nblines, attr, ul, lr);
break;
+ default:
+ break;
}
}
@@ -342,6 +344,8 @@ vgafb_write_char(struct cursorpos cp, struct carattr ca)
case MM_PACKED:
write_gfx_char_lin(vmode_g, cp, ca);
break;
+ default:
+ break;
}
}
@@ -428,6 +432,7 @@ vgafb_write_pixel(u8 color, u16 x, u16 y)
addr_far = (void*)(x + y * (GET_BDA(video_cols) * 8));
SET_FARVAR(SEG_GRAPH, *addr_far, color);
break;
+ default:
case MM_TEXT:
return;
}
@@ -470,6 +475,7 @@ vgafb_read_pixel(u16 x, u16 y)
addr_far = (void*)(x + y * (GET_BDA(video_cols) * 8));
attr = GET_FARVAR(SEG_GRAPH, *addr_far);
break;
+ default:
case MM_TEXT:
return 0;
}