Changes since 1.59.2: - Fixed subscreen blending with master brightness < 100%. - Fixed NMI timing when toggling enable bit. Fixes Chou Aniki--hack removed. - Reverted an IPL map optimization that misses a weird edge case that caused The Great Battle III to lock up. - Clamp MSU1 addition to max amplitude instead of wrapping. Proper MSU1 tracks will not be affected by this. - Save mipmap_input parameter with customized GLSL and slang shaders. - Actually use mipmap_input parameter. - Optimized subscreen math with help from Dwedit. - Revert to measured APU clock speed instead of nominal speed. Fixes An American Tail. - Fixed broken BPS patch support. (ArtiiP) - Fixed MSU1 track restarting on load state. libretro: - Added ability to use Satellaview data in same directory as ROM. - Fixed deviation from proper libretro spec. - Added option to use the software NTSC filter. (stellarporter) GTK: - Added icons to the entries to clear binding assignments. - Fixed overlap in xBRZ multithreading. - Changed glFenceSync option to an OML_sync option that works better. - Fixed accumulation of partial pixel data on mouse motion when we update the mouse position more than once per frame. - Allow one key to be bound to many controller buttons on the same controller. - Force menu and button icons. - Add the view menu to right-click when SNES mouse isn't used. - Remove unused status bar option. - Startup background can be changed in snes9x.conf. - Improved PortAudio driver. Unix: - Fixed sound output that broke with APU refactor.
33 lines
927 B
C++
33 lines
927 B
C++
$NetBSD: patch-unix_unix.cpp,v 1.3 2019/04/25 13:06:58 nia Exp $
|
|
|
|
Avoid colliding with libc functions.
|
|
|
|
--- unix/unix.cpp.orig 2019-04-23 18:57:18.000000000 +0000
|
|
+++ unix/unix.cpp
|
|
@@ -156,7 +156,7 @@ bool S9xDisplayPollButton (uint32, bool
|
|
bool S9xDisplayPollAxis (uint32, int16 *);
|
|
bool S9xDisplayPollPointer (uint32, int16 *, int16 *);
|
|
|
|
-static long log2 (long);
|
|
+static long log2_l (long);
|
|
static void SoundTrigger (void);
|
|
static void InitTimer (void);
|
|
static void NSRTControllerSetup (void);
|
|
@@ -230,7 +230,7 @@ void _makepath (char *path, const char *
|
|
}
|
|
}
|
|
|
|
-static long log2 (long num)
|
|
+static long log2_l (long num)
|
|
{
|
|
long n = 0;
|
|
|
|
@@ -1356,7 +1356,7 @@ bool8 S9xOpenSoundDevice (void)
|
|
return (FALSE);
|
|
}
|
|
|
|
- J = log2(unixSettings.SoundFragmentSize) | (4 << 16);
|
|
+ J = log2_l(unixSettings.SoundFragmentSize) | (4 << 16);
|
|
if (ioctl(so.sound_fd, SNDCTL_DSP_SETFRAGMENT, &J) == -1)
|
|
return (FALSE);
|
|
|