Fix multitouch example

This commit is contained in:
Héctor Ramón Jiménez 2022-11-03 04:42:46 +01:00
parent 9a02d60ba5
commit edce457365
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -2,7 +2,8 @@
//! a circle around each fingertip. This only works on touch-enabled //! a circle around each fingertip. This only works on touch-enabled
//! computers like Microsoft Surface. //! computers like Microsoft Surface.
use iced::widget::canvas::event; use iced::widget::canvas::event;
use iced::widget::canvas::{self, Canvas, Cursor, Geometry, Stroke}; use iced::widget::canvas::stroke::{self, Stroke};
use iced::widget::canvas::{self, Canvas, Cursor, Geometry};
use iced::{ use iced::{
executor, touch, window, Application, Color, Command, Element, Length, executor, touch, window, Application, Color, Command, Element, Length,
Point, Rectangle, Settings, Subscription, Theme, Point, Rectangle, Settings, Subscription, Theme,
@ -186,7 +187,7 @@ impl canvas::Program<Message> for State {
frame.stroke( frame.stroke(
&path, &path,
Stroke { Stroke {
color: Color::BLACK, style: stroke::Style::Solid(Color::BLACK),
width: 3.0, width: 3.0,
..Stroke::default() ..Stroke::default()
}, },