diff options
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index a3e9b248ff..29233d0391 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -1661,9 +1661,7 @@ static void cleanup_for_filename(SkString* name) { } #endif -namespace sk_tool_utils { - extern bool gEnablePortableTypeface; -}; +DECLARE_bool(portableFonts); bool SampleWindow::onHandleChar(SkUnichar uni) { { @@ -1719,7 +1717,7 @@ bool SampleWindow::onHandleChar(SkUnichar uni) { toggleFPS(); break; case 'F': - sk_tool_utils::gEnablePortableTypeface ^= true; + FLAGS_portableFonts ^= true; this->inval(NULL); break; case 'g': |