mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 15:43:10 -10:00
Bug 1222943 (part 1) - Change Touch::mRadius from nsIntPoint to LayoutDeviceIntPoint. r=kats.
This adds a three missing unit conversions for touch radii.
This commit is contained in:
1 parent
0a60cb2187
commit
328ed06554
12 files changed
+41
-38
No files matched your search
@@ -662,14 +662,14 @@ AndroidGeckoEvent::MakeTouchEvent(nsIWidget* widget)
|
||||
LayoutDeviceIntPoint pt(
|
||||
(Points()[i].x * scale.scale) - offset.x,
|
||||
(Points()[i].y * scale.scale) - offset.y);
|
||||
nsIntPoint radii(
|
||||
LayoutDeviceIntPoint radius(
|
||||
PointRadii()[i].x * scale.scale,
|
||||
PointRadii()[i].y * scale.scale);
|
||||
RefPtr<Touch> t = new Touch(PointIndicies()[i],
|
||||
pt,
|
||||
radii,
|
||||
Orientations()[i],
|
||||
Pressures()[i]);
|
||||
pt,
|
||||
radius,
|
||||
Orientations()[i],
|
||||
Pressures()[i]);
|
||||
event.touches.AppendElement(t);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user