diff options
Diffstat (limited to 'samplecode/SampleTextBox.cpp')
-rw-r--r-- | samplecode/SampleTextBox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleTextBox.cpp b/samplecode/SampleTextBox.cpp index 5f37380e99..6b4f3f3710 100644 --- a/samplecode/SampleTextBox.cpp +++ b/samplecode/SampleTextBox.cpp @@ -30,7 +30,7 @@ extern void skia_set_text_gamma(float blackGamma, float whiteGamma); -#ifdef SK_BUILD_FOR_WIN +#if defined(SK_BUILD_FOR_WIN) && !defined(SK_FONTHOST_WIN_DW) extern SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&); #endif @@ -45,7 +45,7 @@ static const char gText[] = class TextBoxView : public SampleView { public: TextBoxView() { -#ifdef SK_BUILD_FOR_WIN +#if defined(SK_BUILD_FOR_WIN) && !defined(SK_FONTHOST_WIN_DW) LOGFONT lf; sk_bzero(&lf, sizeof(lf)); lf.lfHeight = 9; |