ummm....that function you posted should totally work...is it not working for some reason? make sure that VGA is the buffer you are working off of...