60 if(surface_ && rectangle_==
movie)
return {};
65 return std::unexpected(
image.error());
69 const auto updated=
playback.runtimeBitmaps().update(*surface_,std::move(*
image),std::array<float,4>{0,0,800,600},
true);
70 if(!updated)
return std::unexpected(updated.error());
71 rectangle_=
movie;
return {};
75 const auto updated=
playback.runtimeBitmaps().update(*
created,std::move(*
image),std::array<float,4>{0,0,800,600},
true);
76 if(!updated){(
void)
playback.runtimeBitmaps().remove(*
created);
return std::unexpected(updated.error());}
78 if(!started){(
void)
playback.runtimeBitmaps().remove(*
created);
return std::unexpected(started.error());}