I have largely reorganized the video code. Be aware that a lot of code is now in a different place, and some files were moved or renamed.
global variables, init/cleanup code video_init(), video_close(), load_file(), video_config_init()
int10 emulation (formerly int10.h), Scroll, clear_screen, char_out, set_video_mode
console switching code (formerly video.c)
console mode routines
card-dependent console/graphics switching routines
console mode? graphics?
terminal mode video update routines (ansi/ncurses)
Xwindow stuff
def's relating to console switching (formerly include/video.h)
def's for general video status variables and functions
Please use this when implementing new video front ends! (See video/video.h for more info)
At the moment, it doesn't seem to achieve much, but it might help when we use mark's scroll detector, and will be absolutely necessary for a good X graphics support.
Note that for all video memory modifications done outside of vm86 mode we must now use set_dirty() (defined in int10.c). this is currently disabled. To enable it, set VIDEO_CHECK_DIRTY to 1 in include/video.c.