summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2008-12-23 16:49:54 +0000
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2008-12-23 16:49:54 +0000
commite33ae45b5e21bf350049fa5b2c0858a8e1654054 (patch)
tree46244ba9f15780672d525bf437e9225569a21eaf /views
parent0bcf95beb1cf76d40755cda75662e108ad6c7735 (diff)
downloadsrc-e33ae45b5e21bf350049fa5b2c0858a8e1654054.tar.gz
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/src@47 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'views')
-rw-r--r--views/SkWindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/SkWindow.cpp b/views/SkWindow.cpp
index ae03b811..c8403d46 100644
--- a/views/SkWindow.cpp
+++ b/views/SkWindow.cpp
@@ -248,10 +248,11 @@ void SkWindow::addMenu(SkOSMenu* menu)
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);
}