Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Example.h
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@ struct WgWindow : Window
void resize() override
{
//Set the canvas target and draw on it.
verify(static_cast<tvg::WgCanvas*>(canvas)->target(device, instance, surface, width, height, tvg::ColorSpace::ABGR8888S));
tvg::WgCanvas::Context context = {instance, adapter, device};
verify(static_cast<tvg::WgCanvas*>(canvas)->target(context, surface, width, height, tvg::ColorSpace::ABGR8888));
Comment on lines +520 to +521
Comment on lines +520 to +521
}

void refresh() override
Expand Down
5 changes: 3 additions & 2 deletions src/MultiCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ bool runWg()
auto canvas = unique_ptr<tvg::WgCanvas>(tvg::WgCanvas::gen());

//Set the canvas target and draw on it.
tvgexam::verify(canvas->target(device, instance, renderTarget, SIZE, SIZE, tvg::ColorSpace::ABGR8888S, 1));
tvg::WgCanvas::Context context = {instance, adapter, device};
tvgexam::verify(canvas->target(context, renderTarget, SIZE, SIZE, tvg::ColorSpace::ABGR8888, 1));
Comment on lines +358 to +359

Comment on lines 357 to 360
content(canvas.get());
if (tvgexam::verify(canvas->draw())) {
Expand Down Expand Up @@ -418,4 +419,4 @@ int main(int argc, char **argv)
}

return 0;
}
}
Loading