Browse Source

Fix build with new DPF

pull/1/head
falkTX 11 years ago
parent
commit
a6ce0f7843
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      dpf
  2. +2
    -2
      examples/nanovg2.cpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 8d8af85953661c305c96610b7106bb87112357dd
Subproject commit 2a076932ef2f0870bb96743e9fb02ae7ca1f32b9

+ 2
- 2
examples/nanovg2.cpp View File

@@ -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<NanoImage> fImages[12];

void drawEyes(float x, float y, float w, float h, float mx, float my, float t)
{


Loading…
Cancel
Save