зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
2be9e8b407
Коммит
840e9f3776
|
@ -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() {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче