23 Feb
2007
23 Feb
'07
12:14 a.m.
Rich,
The MEMORY path is still in MemoryAlloc for diskvid.c to use; I don't recall changing anything in its logic where it decides to use disk or memory. You can look at the CVS history on diskvid.c to check. The number of modifications I've made to the source is not small, so they don't stick out as individual items in my mind.
The problem is in the check_for_mem() routine. maxmem = (long)USHRT_MAX; /* limit EXTRA and FARMEM to 64K */ USHRT_MAX = FFFF = 65535 320 x 200 = 64000, so when we add 8194 to it, we are over the max allowed for the MEMORY type, the way it is presently coded. That is why all we are seeing is the DISK type used for disk video modes. Pick some suitably big number and use it instead of USHRT_MAX. Jonathan