example: ++exception handling

This commit is contained in:
Hermet Park 2024-06-27 11:19:04 +09:00 committed by Hermet Park
parent adbf1d3cab
commit f80814847d

View file

@ -190,7 +190,9 @@ struct Window
bool ready() 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. //initiate the first rendering before window pop-up.
if (!verify(canvas->draw())) return false; if (!verify(canvas->draw())) return false;