- Fix some cppcheck perf warnings

git-svn-id: http://odamex.net/svn/root/trunk@3578 b0bcef46-2027-0410-bd56-ab726e9a1d04
- Fix a cppcheck warning

git-svn-id: http://odamex.net/svn/root/trunk@3579 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Change FixedDiv to use integer division instead of double-precision float division. This is a safer bet for demo compatibility on unusual platforms.
-Testing indicates that float division was noticeably slower than integer division in 32bit MSVC and MinGW builds but was faster in 64bit MSVC builds.

git-svn-id: http://odamex.net/svn/root/trunk@3580 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Change R_MapLevelPlane to use only fixed-point arithmetic.

git-svn-id: http://odamex.net/svn/root/trunk@3581 b0bcef46-2027-0410-bd56-ab726e9a1d04
Update CB projects for removal of m_fixed

git-svn-id: http://odamex.net/svn/root/trunk@3582 b0bcef46-2027-0410-bd56-ab726e9a1d04
- Display info cards and title pics ratio-corrected.  Note: this is corrected to 4:3 but for now the height is clamped to the screen height, only width is adjusted.
- Rename autoadjust_video_settings to vid_autoadjust

git-svn-id: http://odamex.net/svn/root/trunk@3583 b0bcef46-2027-0410-bd56-ab726e9a1d04
JamesDunne's 32bpp rendering mode; enable via `vid_32bpp` cvar.

Removed `vid_defbits` cvar in favor of `vid_32bpp` and new menu option.
`vid_32bpp` cvar forces a mode switch when set.
Added '32-bit color' menu option which controls `vid_32bpp` cvar.
Removed all force 8bpp mode settings.
Blit functions updated to correctly copy and translate colors between 8bpp and 32bpp modes.
Disabled `I_BeginRead` which rendered a disk icon during disk loads; basic cyclic dependency problem with palette initialization and caused a crash.
Forced gamma table initialization in palette setup code. Without this the screen would simply turn black in 32bpp because newgamma[] contained nothing but 0s.
In general, code prefers to preserve 32bpp calculated colors and use `BestColor` function to do palette mapping.
Invented `shaderef_t` and `shademap_t` to more sanely track colormap/shademap pair for 8bpp and 32bpp support.
Using `am_color_t` to represent both 32bpp and 8bpp values for automap colors.
32bpp alpha blending for status/pain effects.
SSE2, MMX, AltiVec optimizations for all 4-col rendering functions to do status alpha-blending.
Introduced `r_intrin.h` to sanely detect MMX, SSE2, AltiVec availability.
Added tech-specific optimization files for SSE2, MMX, and AltiVec.
`r_optimize` cvar introduced to detect and switch between CPU rendering optimizations.
Made sure MMX is not included in Win64 build; Win64 does not support MMX.
Using function pointers for all rendering functions to easily switch modes.
Fixed wipes for 32bpp.
Fixed 8bpp vs 32bpp SDL screen mode switching snafu.
Fixed dim effect for 32bpp.
Fixed automap for 32bpp.
Fixed screenshot for 32bpp.
Fixed view window resizing in 32bpp mode.
Fixed particle rendering for 32bpp.
Fixed player setup screen's fire rendering in 32bpp.
Fixed blend for 32bpp modes to be 50% alpha instead of 100% alpha.
Fixed bunny scroll to work in 32bpp.
Fixed CTF border when carrying flag in 32bpp.
Refactored palette setup code.
Generating custom shademaps for default light levels.
Separating shademap construction from colormap.
Much better logarithmic scale for lighting in 32bpp.
Fixed forced 50% alpha for HUD in 32bpp; now repsects menu setting.
Disabled `blend4vs4_sse2` because it produces incorrect colors.
Ramped up red pain effect.
More graceful mode switching failure handling.
Removed ASM code for rendering.
Switched `r_*D` functions to pointers.
`DCanvas::Dim()` vectorized.
`R_DrawSpanD()` vectorized.
Don't use vectorization if `BlendA == 0`; just slows things down.
32bpp player color translation.
Working single-player player color translation in chase mode.
Bugfix for crash when downloading PWAD from server during an active game.
Added vid_vsync and i_wait cvars to uncork the 35fps limit.
Only issue a warning if a netdemo file cannot be created.
Proof-of-concept of post-rendering alpha-blending.
Removed now extraneous vectorized rendering functions.
Fixed invuln color map in 32bpp.
Renamed i_wait to vid_capfps for compatibility.