X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftom.cpp;h=29860682832fcb655c33c67ce0711c31de8dff51;hb=438d3a52ef0af04ac3279c0839fe6ffd7333b776;hp=b3882a09f3fbe645e4b1b17ba6d6c2aaf21f9483;hpb=bfca68337bb71d75f7848922c2d0a73837c923cb;p=virtualjaguar diff --git a/src/tom.cpp b/src/tom.cpp index b3882a0..2986068 100644 --- a/src/tom.cpp +++ b/src/tom.cpp @@ -336,6 +336,8 @@ uint16 tom_jerry_int_pending, tom_timer_int_pending, tom_object_int_pending, //int16 * TOMBackbuffer; uint32 * TOMBackbuffer; +uint32 tomDeviceWidth; + static const char * videoMode_to_str[8] = { "16 BPP CRY", "24 BPP RGB", "16 BPP DIRECT", "16 BPP RGB", "Mixed mode", "24 BPP RGB", "16 BPP DIRECT", "16 BPP RGB" }; @@ -1020,7 +1022,9 @@ void tom_render_24bpp_scanline(uint32 * backbuffer) *currentLineBuffer++ = pixel; } - TOMBackbuffer += GetSDLScreenWidthInPixels(); +#warning "!!! Need to move this to an interface file !!! FIX !!!" +// TOMBackbuffer += GetSDLScreenWidthInPixels(); + TOMBackbuffer += tomDeviceWidth; } } @@ -1499,8 +1503,10 @@ if (offset == VMODE) { tomWidth = width, tomHeight = height; - if (vjs.renderType == RT_NORMAL) - ResizeScreen(tomWidth, tomHeight); +#warning "!!! TOM: ResizeScreen commented out !!!" +// No need to resize anything, since we're prepared for this... +// if (vjs.renderType == RT_NORMAL) +// ResizeScreen(tomWidth, tomHeight); } } }