------------------------------------------------------------------------ r2575 | helixhorned | 2012-03-31 04:22:32 -0700 (Sat, 31 Mar 2012) | 1 line CON showview/showviewunbiased: silently clamp 'horiz' to HORIZ_MIN..HORIZ_MAX. ------------------------------------------------------------------------ r2574 | helixhorned | 2012-03-31 04:22:19 -0700 (Sat, 31 Mar 2012) | 7 lines Allow the screen bounds difference in CON showview/-unbiased to be less than 2. This requires one tweak in drawrooms' umost/dmost setup to prevent oob access. Specifically, a coordinate difference of 0 is allowed. In the classic renderer, this would mean a one-pixel (real screen coords) height or width. In Polymost, it would currently mean a one-pixel height and zero-pixel width, but this might be subject to change. ------------------------------------------------------------------------ r2573 | helixhorned | 2012-03-31 04:22:00 -0700 (Sat, 31 Mar 2012) | 9 lines New CON command 'showviewunbiased', mapping the screen coords w/o round-to-0 bias. The showview command transforms the 320-based screen bound coordinates to the real screen bounds like xreal = (x*xdim)/320, which shows a bias towards zero: for example, for a 1680 screen width, the maximum permissible value 319 is mapped to round_to_zero((319*1680)/320) == 1674. (The rounding is implicit in the integer division). This makes it impossible for a view to cover the whole screen with any other resolution than 320x200. The new command transforms the bounds like xreal = (x*(xdim-1))/319, which would map 319 to 1679 in the preceding example. ------------------------------------------------------------------------