Better MSB shadow.

I'm not 100% sure about the implementation, but
this should improve sprite on sprite shadow...

This fix Asuka and Crows shadows.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2944 d7be59e3-070e-4b9a-85a1-4646befae34d
Better MSB shadow 2.

Heh... I said I wasn't sure about my change :)
So this fix fixes the previous fix.
The Crows shadow looks really good now.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2945 d7be59e3-070e-4b9a-85a1-4646befae34d
Hide some MSVC warnings

Removed the "strdup" warnings.
Also remove the "unary minus" warnings when compiling c68kexec.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2946 d7be59e3-070e-4b9a-85a1-4646befae34d
Another warnings fix for MSVC

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2947 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed vdp2 debug info.

The "character number supplement bit" was wrong...
Some of those MSVC warnings were useful :)

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2948 d7be59e3-070e-4b9a-85a1-4646befae34d
Better cmake rules on OSX

Fixed building of the opengl renderer with cmake
on OSX by detecting if FBO functions are available
or not. (don't like it much, but I don't understand
how xcode make it works...)

This also makes the cocoa port buildable
with cmake (though the .app is not created yet...)


git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2949 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed sprite clipping.

When a sprite was clipped due to user clipping, the clipping
was not removed. If the following sprite was not using user
clipping, it ended up using the those clipping values.

This fix the missing dialog border bug in Albert Odyssey.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2950 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed some clang warnings when compiling dynarec.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2951 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed 8bpp normal shadow.

Fixed the mask for normal shadow for sprite C => F
Added normal shadow test for 8 bpp sprite.

This fix the shadow in the second event of Athlete Kings

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2952 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed endianess bugs.

PostPixelFetchCalc should be called last and
the COLOR_ADD macro was wrong for bigendian.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2953 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed window test (again...)

Fixed a bug when a game was using the AND logic
with only one active window.

This fix the fade-in in STHA when opening the world map.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2954 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed texture debug when compiled with opengl.

Using GetGlSize was quite a bad idea as this
function (as it name implies) provides the
"opengl" output size.
Added a new TitanGetResolution function as
that's what we really want here.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2955 d7be59e3-070e-4b9a-85a1-4646befae34d
New blending mode (add as is).

New blending mode implemented in titan, it implements
the "add as is" mode when CCMD = 1.

This fix the Burning Rangers character selection.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2956 d7be59e3-070e-4b9a-85a1-4646befae34d
Improvements to the new OSD system.

There's two things included in this commit:
- a new OSD core;
- an update to the OSD api.

The new OSD core is a full software one, with a bitmap font
included. The font may be a bit small and is not complete yet...
but it's enough to display the FPS.

The new api introduces a new function: OSDUseBuffer that tells
if the OSD core needs a buffer to draw into or if it will
render to OpenGL.
It also add parameters to OSDDisplayMessages to provide a
buffer and its size.

The default OSD core is now Glut if it's found and the
software one otherwise. The OpenGL renderer is not able to use
the software OSD yet.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2957 d7be59e3-070e-4b9a-85a1-4646befae34d
Hack so FPS visibilty is kept after YabauseInit

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2958 d7be59e3-070e-4b9a-85a1-4646befae34d
Software OSD now available with OGL renderer.

Thanks devmiyax for this patch.

This makes it the first OSD available for all
possible rendering methods:
OpenGL, software + OpenGL and full software.

Glut is still the default OSD when it's found.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2959 d7be59e3-070e-4b9a-85a1-4646befae34d
Trying to reduce OSD overhead.

OSDDisplayMessages now returns 1 if something have been draw
and 0 otherwise.
The OpenGL renderer use that information to avoid calling
the textures functions when it don't need to.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2960 d7be59e3-070e-4b9a-85a1-4646befae34d
Implemented switched parameters.

This include a few changes:
- Made it possible to have one screeninfo per param
- Removed useless function SetupRotationInfo

This fix the sky in 3D Baseball.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2961 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed switched parameters.

When using switched parameters, the parameter B may not use
coefficients.
This fix the crash in 3D baseball.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2962 d7be59e3-070e-4b9a-85a1-4646befae34d
Ports now have control over the OSD cores.

When compiled with the new YAB_PORT_OSD option, the emulation library
doesn't provide a OSDCoreList anymore and let ports choose their osd
core with the osdcoretype configuration in YabauseInit.
Of course, this means that trying to compile ports that don't handle
YAB_PORT_OSD will fail because of missing OSDCoreList symbol.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2963 d7be59e3-070e-4b9a-85a1-4646befae34d