Implement the following functions:
vga_getoptmode()

Improve the following functions:
vga_getdefaultmode()
