make sure size change posts at sample app startup.
git-svn-id: http://skia.googlecode.com/svn/trunk@1811 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index df6e7cc..0d4ff44 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -425,16 +425,15 @@
}
}
this->loadView(fSamples[fCurrIndex]());
+
+ fPDFData = NULL;
+ this->make3DReady();
// If another constructor set our dimensions, ensure that our
// onSizeChange gets called.
if (this->height() && this->width()) {
this->onSizeChange();
}
-
- fPDFData = NULL;
-
- this->make3DReady();
}
SampleWindow::~SampleWindow() {