There are only 248 default colors in the 256-color mode palette, and the remaining 8 colors are not altered by mode changes. Fixes font and mouse pointer colors in Voyages of Discovery.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3852 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Some corrections.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3853 ed541006-0bf7-43e9-8c4d-6fc63c346d47
TOP is used as 32 bit in dynrec core

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3854 ed541006-0bf7-43e9-8c4d-6fc63c346d47
fpu.sw is 16 bit(jmarsh)

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3855 ed541006-0bf7-43e9-8c4d-6fc63c346d47
reg_eip is 32 bit(jmarsh)

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3856 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Stop rethrowing the error, as SDL doesn't know what to do with it anyways. Fix a couple of formatting related warnings/errors.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3857 ed541006-0bf7-43e9-8c4d-6fc63c346d47
stdprn is now really prn and you can't read from it. Fixes a weird runtime that reads the PRN handle.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3858 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Implement VGA memory wrapping for the wrapping line also in vgaonly rendering. Fixes black line in Keen.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3859 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Use PCJr specific method to clear the video RAM. Also don't scroll at unspecified video page. Fixes issues with KQ1 and KQ2.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3860 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Add Exit conditions for stack over/underflows 
It's bad to continue when these states happen. Let's see if a game triggers it.


git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3861 ed541006-0bf7-43e9-8c4d-6fc63c346d47
lower the influence of the aspect table correction trick when using high scale factors (320x200 =>2000x1200)


git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3862 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Improve the results of the windowed resolution calculation so that the one off errors are gone.
Create a small wrapper function around SDL_SetVideoMode, so that we don't set the same mode twice. 
Both changes benefit people who record footage with external recording software and it speeds up mode video mode changes. (especially with aspect=true)


git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3863 ed541006-0bf7-43e9-8c4d-6fc63c346d47
reordering.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3864 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Aspect correct text modes as well.
I hope I got the ratios right. Let me know if I messed up.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3865 ed541006-0bf7-43e9-8c4d-6fc63c346d47
25*14=350

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3866 ed541006-0bf7-43e9-8c4d-6fc63c346d47
the mapper needs to use the wrapper as well.


git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3867 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Illegal memory reads have all bits set. Fixes early (and buggy) shareware versions of Shadow Warrior.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3868 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Run with -mno-ms-bitfields if the compiler supports it as the ms-bitfields are turned on by default on some hosts, but they are broken https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3869 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Allow the windows and menu keys to be mappable on Linux and Windows.
Fixes bug 406 on sf.net and topic 380510 on vogons.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3870 ed541006-0bf7-43e9-8c4d-6fc63c346d47
Workaround 2 issues, when starting the keymapper with output=opengl,aspect=true on windows.

git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3871 ed541006-0bf7-43e9-8c4d-6fc63c346d47