diff options
-rw-r--r-- | debugger/QT/SkCanvasWidget.h | 4 | ||||
-rw-r--r-- | debugger/QT/SkDebuggerGUI.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/debugger/QT/SkCanvasWidget.h b/debugger/QT/SkCanvasWidget.h index ff72c60066..ab634f8f04 100644 --- a/debugger/QT/SkCanvasWidget.h +++ b/debugger/QT/SkCanvasWidget.h @@ -36,6 +36,8 @@ public: void zoom(float zoomIncrement); + void resetWidgetTransform(); + signals: void scaleFactorChanged(float newScaleFactor); void commandChanged(int newCommand); @@ -55,8 +57,6 @@ private: SkIPoint fUserOffset; float fUserScaleFactor; - void resetWidgetTransform(); - void mouseMoveEvent(QMouseEvent* event); void mousePressEvent(QMouseEvent* event); diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp index a311916dba..6075df0430 100644 --- a/debugger/QT/SkDebuggerGUI.cpp +++ b/debugger/QT/SkDebuggerGUI.cpp @@ -575,7 +575,9 @@ void SkDebuggerGUI::loadPicture(QString fileName) { fLoading = true; SkStream* stream = new SkFILEStream(fileName.toAscii()); SkPicture* picture = new SkPicture(stream); + fCanvasWidget.resetWidgetTransform(); fDebugger.loadPicture(picture); + fCanvasWidget.drawTo(fDebugger.index()); SkSafeUnref(stream); SkSafeUnref(picture); |