mirror of
https://github.com/libretro/mame2003-plus-libretro.git
synced 2024-11-23 08:19:42 +00:00
Revert for now (#1547)
This commit is contained in:
parent
d3d07b2eb7
commit
e0d4ece3b2
2
Makefile
2
Makefile
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user