Revert for now (#1547)

This commit is contained in:
mahoneyt944 2023-01-27 22:19:17 -05:00 committed by GitHub
parent d3d07b2eb7
commit e0d4ece3b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ endif
ifeq ($(platform), unix)
TARGET = $(TARGET_NAME)_libretro.so
fpic = -fPIC
CFLAGS += $(fpic) -std=c89
CFLAGS += $(fpic)
LDFLAGS += $(fpic) -shared -Wl,--version-script=link.T
# Linux Portable

View File

@ -1387,11 +1387,11 @@ void osd_xy_device_read(int player, int *deltax, int *deltay, const char* type)
******************************************************************************/
int rescale_analog(int libretro_coordinate)
{
double rescale = (double)MAME_ANALOG_MAX * ( (double)libretro_coordinate / (double)LIBRETRO_ANALOG_MAX );
static const float scale_factor = (float)MAME_ANALOG_MAX / LIBRETRO_ANALOG_MAX;
if (libretro_coordinate == LIBRETRO_ANALOG_MIN) return 0;
if (libretro_coordinate == 0 || libretro_coordinate == LIBRETRO_ANALOG_MIN) return 0;
return (int)round(rescale);
return round(scale_factor * libretro_coordinate);
}
/******************************************************************************