mirror of
https://github.com/libretro/pcsx2.git
synced 2025-01-28 21:02:27 +00:00
lilypad: minor c++ fixes
Must be checked on windows
This commit is contained in:
parent
147353a177
commit
3661f51bcb
@ -84,8 +84,6 @@ extern GeneralConfig config;
|
||||
|
||||
void UnloadConfigs();
|
||||
|
||||
void AddIgnore(LPARAM k);
|
||||
|
||||
void SetVolume(int volume);
|
||||
|
||||
int LoadSettings(int force = 0, wchar_t *file = 0);
|
||||
|
@ -106,6 +106,7 @@ EXPORT_C_(void) PADconfigure();
|
||||
EXPORT_C_(s32) PADfreeze(int mode, freezeData *data);
|
||||
EXPORT_C_(s32) PADsetSlot(u8 port, u8 slot);
|
||||
EXPORT_C_(s32) PADqueryMtap(u8 port);
|
||||
EXPORT_C_(void) PADsetSettingsDir(const char *dir);
|
||||
|
||||
#ifdef NO_CRT
|
||||
|
||||
|
@ -221,7 +221,7 @@ void Device::CalcVirtualState() {
|
||||
double East = sin(angle);
|
||||
double South = -cos(angle);
|
||||
// Normalize so greatest direction is 1.
|
||||
double mul = FULLY_DOWN / max(fabs(South), fabs(East));
|
||||
double mul = FULLY_DOWN / std::max(fabs(South), fabs(East));
|
||||
iEast = (int) floor(East * mul + 0.5);
|
||||
iSouth = (int) floor(South * mul + 0.5);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user