make sure size change posts at sample app startup.

git-svn-id: http://skia.googlecode.com/svn/trunk@1811 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-07-06 21:59:09 +00:00
Родитель 2be9e8b407
Коммит 840e9f3776
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -426,15 +426,14 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv) : INHERITED(hwnd)
} }
this->loadView(fSamples[fCurrIndex]()); this->loadView(fSamples[fCurrIndex]());
fPDFData = NULL;
this->make3DReady();
// If another constructor set our dimensions, ensure that our // If another constructor set our dimensions, ensure that our
// onSizeChange gets called. // onSizeChange gets called.
if (this->height() && this->width()) { if (this->height() && this->width()) {
this->onSizeChange(); this->onSizeChange();
} }
fPDFData = NULL;
this->make3DReady();
} }
SampleWindow::~SampleWindow() { SampleWindow::~SampleWindow() {