]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
vgabios: implement read char in graphics mode
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 2 Jan 2015 17:32:25 +0000 (12:32 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 6 Jan 2015 14:54:44 +0000 (09:54 -0500)
commit60e0e55f212dadd043ab9e39bee05a48013ddd8f
tree0bf0b2b3ddcc2b7724be67a2f2a49e53e7bab137
parent9c29148ea6e2ba0c1ca81f92138a4f71e5f8d6d7
vgabios: implement read char in graphics mode

GWBasic relies on this, so implement it to enable some serious retrocomputing.
There is no better way to do it than trying to match all characters one by one
against the current font.

This makes it possible to actually do something in SCREEN 1 and SCREEN 2
(without it, you can use graphics in the programs but not in direct mode).

I couldn't find documentation for what to return as the attribute, but
experimenting with DOSBox suggests 0 (and GWBasic accepts it).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/string.c
src/string.h
vgasrc/vgafb.c