mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1066237 - Add explicit returning zero number of touch points when there is no touch device available. r=smaug
This commit is contained in:
parent
d4ac7b6bef
commit
b6cbf22f95
@ -190,6 +190,12 @@ using namespace mozilla::gfx;
|
||||
using namespace mozilla::layers;
|
||||
using namespace mozilla::widget;
|
||||
|
||||
namespace mozilla {
|
||||
namespace widget {
|
||||
extern int32_t IsTouchDeviceSupportPresent();
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************
|
||||
**************************************************************
|
||||
**
|
||||
@ -3611,7 +3617,7 @@ nsWindow::UpdateThemeGeometries(const nsTArray<ThemeGeometry>& aThemeGeometries)
|
||||
uint32_t
|
||||
nsWindow::GetMaxTouchPoints() const
|
||||
{
|
||||
if (IsWin7OrLater()) {
|
||||
if (IsWin7OrLater() && IsTouchDeviceSupportPresent()) {
|
||||
return GetSystemMetrics(SM_MAXIMUMTOUCHES);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user