mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
example: ++exception handling
This commit is contained in:
parent
adbf1d3cab
commit
f80814847d
1 changed files with 3 additions and 1 deletions
|
@ -190,7 +190,9 @@ struct Window
|
|||
|
||||
bool ready()
|
||||
{
|
||||
if (!example->content(Window::canvas, width, height)) return false;
|
||||
if (!canvas) return false;
|
||||
|
||||
if (!example->content(canvas, width, height)) return false;
|
||||
|
||||
//initiate the first rendering before window pop-up.
|
||||
if (!verify(canvas->draw())) return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue