| Index: sky/examples/raw/launcher.dart
|
| diff --git a/sky/examples/raw/launcher.dart b/sky/examples/raw/launcher.dart
|
| index 58341d184b1df9dd89a323f0fe5ac3ab460c972e..bd12134b2c3c318f796303a7c6fd6b63b90b1618 100644
|
| --- a/sky/examples/raw/launcher.dart
|
| +++ b/sky/examples/raw/launcher.dart
|
| @@ -12,11 +12,12 @@ Picture draw(int a, int r, int g, int b) {
|
| double width = view.width;
|
| double height = view.height;
|
|
|
| - PictureRecorder recorder = new PictureRecorder(width, height);
|
| + PictureRecorder recorder = new PictureRecorder();
|
| + Canvas canvas = new Canvas(recorder, width, height);
|
| double radius = min(width, height) * 0.45;
|
|
|
| Paint paint = new Paint()..color = new Color.fromARGB(a, r, g, b);
|
| - recorder.drawRect(new Rect.fromSize(new Size(width, height)), paint);
|
| + canvas.drawRect(new Rect.fromSize(new Size(width, height)), paint);
|
| return recorder.endRecording();
|
| }
|
|
|
|
|