| Index: samplecode/SampleLua.cpp
|
| diff --git a/samplecode/SampleLua.cpp b/samplecode/SampleLua.cpp
|
| index e7af727ab5b7b63e30870eeb347878fee5de286b..1536ed4fb846198cf2efb23cc0cf038383d4da72 100644
|
| --- a/samplecode/SampleLua.cpp
|
| +++ b/samplecode/SampleLua.cpp
|
| @@ -100,6 +100,12 @@ protected:
|
| }
|
|
|
| virtual void onDrawContent(SkCanvas* canvas) SK_OVERRIDE {
|
| + SkMatrix matrix;
|
| + matrix.setRectToRect(SkRect::MakeWH(640, 480),
|
| + SkRect::MakeWH(this->width(), this->height()),
|
| + SkMatrix::kCenter_ScaleToFit);
|
| + canvas->concat(matrix);
|
| +
|
| lua_State* L = this->ensureLua();
|
|
|
| lua_getglobal(L, gDrawName);
|
|
|