diff options
| author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-06 21:59:09 +0000 |
|---|---|---|
| committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-06 21:59:09 +0000 |
| commit | 840e9f3776ea99d9c1cfe5ccc0b85f3db3da9aff (patch) | |
| tree | 033be4096d853cbc6e8eea423b34103f6318859a /samplecode/SampleApp.cpp | |
| parent | 2be9e8b407624fa696854b78b407b97a01dbb703 (diff) | |
make sure size change posts at sample app startup.
git-svn-id: http://skia.googlecode.com/svn/trunk@1811 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleApp.cpp')
| -rw-r--r-- | samplecode/SampleApp.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index df6e7cc603..0d4ff44213 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -425,16 +425,15 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv) : INHERITED(hwnd) } } 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() { |
