From: "Arkady V.Belousov" <[EMAIL PROTECTED]> Date: Mon, 19 Feb 2007 23:03:13 +0300
> >> Why does it require many code changes to support > >> other than 80 columns? You could either only use > OOC> RTFS. Insight writes strings directly to video > OOC> memory. Offsets computed in this way: (X+Y*80)*2. > OOC> Such expresions coded as compile-time constants. > > Who prevents to read screen width from BIOS data area (word at 0:44A)? Arkady, I know where BIOS keeps screen width. There is another problem. If I want to write string starting at row 3, column 7 (for example) I can compute offset as (7+3*80)*2 == 494. I.e. string begins at 0b800:0494. This const (494) I can compute at compile time, because I know row, column, and width of screen. If I want to use variable screen width, I must perform such calculations each time I want to write string. Authors of Insight used constants. Change to variables requires _too much_ changes in the code, especially at the code that creates menus and windows. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel