From 840e9f3776ea99d9c1cfe5ccc0b85f3db3da9aff Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Wed, 6 Jul 2011 21:59:09 +0000 Subject: [PATCH] make sure size change posts at sample app startup. git-svn-id: http://skia.googlecode.com/svn/trunk@1811 2bbb7eff-a529-9590-31e7-b0007b416f81 --- samplecode/SampleApp.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 @@ 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() { -- 2.7.4