From: Shamus Hammons Date: Sun, 18 Jan 2004 23:59:57 +0000 (+0000) Subject: Removed Doom kludge X-Git-Tag: 1.0.7~69 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e5606b067152768044d035863be184d721897e1;p=virtualjaguar Removed Doom kludge --- diff --git a/src/tom.cpp b/src/tom.cpp index 0757601..27f0a45 100644 --- a/src/tom.cpp +++ b/src/tom.cpp @@ -917,10 +917,10 @@ uint32 tom_getVideoModeWidth(void) // To make it easier to make a quasi-fixed display size, we restrict the viewing // area to an arbitrary range of the Horizontal Count. uint16 pwidth = ((GET16(tom_ram_8, VMODE) & PWIDTH) >> 9) + 1; -// return (RIGHT_VISIBLE_HC - LEFT_VISIBLE_HC) / pwidth; + return (RIGHT_VISIBLE_HC - LEFT_VISIBLE_HC) / pwidth; //Temporary, for testing Doom... - return (RIGHT_VISIBLE_HC - LEFT_VISIBLE_HC) / (pwidth == 8 ? 4 : pwidth); -// return (RIGHT_VISIBLE_HC - LEFT_VISIBLE_HC) / (pwidth == 4 ? 8 : pwidth); +// return (RIGHT_VISIBLE_HC - LEFT_VISIBLE_HC) / (pwidth == 8 ? 4 : pwidth); +//// return (RIGHT_VISIBLE_HC - LEFT_VISIBLE_HC) / (pwidth == 4 ? 8 : pwidth); // More speculating... // According to the JTRM, the number of potential pixels across is given by the