mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 690937 - Fixed compilation on mingw
--HG-- extra : rebase_source : 3ff75ba5d6c9fe68a3f195c86176f498db0db5a4
This commit is contained in:
parent
5c0b1985e0
commit
65ac64257a
@ -12,7 +12,7 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <hidsdi.h>
|
#include <hidsdi.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <Xinput.h>
|
#include <xinput.h>
|
||||||
|
|
||||||
#include "nsIComponentManager.h"
|
#include "nsIComponentManager.h"
|
||||||
#include "nsIObserver.h"
|
#include "nsIObserver.h"
|
||||||
@ -745,7 +745,7 @@ WindowsGamepadService::GetRawGamepad(HANDLE handle)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gamepad.numAxes = std::min(axes.Length(), kMaxAxes);
|
gamepad.numAxes = std::min<size_t>(axes.Length(), kMaxAxes);
|
||||||
for (unsigned i = 0; i < gamepad.numAxes; i++) {
|
for (unsigned i = 0; i < gamepad.numAxes; i++) {
|
||||||
if (i >= kMaxAxes) {
|
if (i >= kMaxAxes) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user