add mac image-encoding
add 'f' to sampleapp, which writes a png file for the currnet screen



git-svn-id: http://skia.googlecode.com/svn/trunk@47 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/views/SkWindow.cpp b/src/views/SkWindow.cpp
index ae03b81..c8403d4 100644
--- a/src/views/SkWindow.cpp
+++ b/src/views/SkWindow.cpp
@@ -248,10 +248,11 @@
 	this->onAddMenu(menu);
 }
 
-void SkWindow::setTitle(const char title[])
-{
-    if (NULL == title)
+void SkWindow::setTitle(const char title[]) {
+    if (NULL == title) {
         title = "";
+    }
+    fTitle.set(title);
     this->onSetTitle(title);
 }