diff --git a/dpf b/dpf index 8d8af85..2a07693 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 8d8af85953661c305c96610b7106bb87112357dd +Subproject commit 2a076932ef2f0870bb96743e9fb02ae7ca1f32b9 diff --git a/examples/nanovg2.cpp b/examples/nanovg2.cpp index a43422e..68639ea 100644 --- a/examples/nanovg2.cpp +++ b/examples/nanovg2.cpp @@ -54,7 +54,7 @@ public: std::snprintf(file, 128, "./nanovg_res/images/image%d.jpg", i+1); fImages[i] = createImage(file); - if (! fImages[i].isValid()) + if (fImages[i] == nullptr) { d_stdout("Could not load %s.", file); return; @@ -120,7 +120,7 @@ protected: private: FontId fFontNormal, fFontBold, fFontIcons; - NanoImage fImages[12]; + ScopedPointer fImages[12]; void drawEyes(float x, float y, float w, float h, float mx, float my, float t) {