Skip to content

Commit

Permalink
fix 1000x wrong flutter#6137
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Oct 10, 2022
1 parent a508aa5 commit 6552e50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ui/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ abstract class FlutterView {
/// scheduling of frames.
/// * [RendererBinding], the Flutter framework class which manages layout and
/// painting.
void render(Scene scene, {Duration? fallbackVsyncTargetTime}) => _render(scene, fallbackVsyncTargetTime?.inMicroseconds ?? -1);
void render(Scene scene, {Duration? fallbackVsyncTargetTime}) =>
_render(scene, fallbackVsyncTargetTime != null
? fallbackVsyncTargetTime.inMicroseconds * 1000
: -1);

@FfiNative<Void Function(Pointer<Void>, Int64)>('PlatformConfigurationNativeApi::Render')
external static void _render(Scene scene, int fallbackVsyncTargetTime);
Expand Down

0 comments on commit 6552e50

Please sign in to comment.