diff --git a/uppsrc/CtrlCore/X11Wnd.cpp b/uppsrc/CtrlCore/X11Wnd.cpp index 84057a31a..7e96afb58 100644 --- a/uppsrc/CtrlCore/X11Wnd.cpp +++ b/uppsrc/CtrlCore/X11Wnd.cpp @@ -950,10 +950,8 @@ ViewDraw::ViewDraw(Ctrl *ctrl) clip.Add(r); dw = top->GetWindow(); gc = XCreateGC(Xdisplay, dw, 0, 0); -#ifdef PLATFORM_XFT xftdraw = XftDrawCreate(Xdisplay, (Drawable) dw, DefaultVisual(Xdisplay, Xscreenno), Xcolormap); -#endif Init(clip, r.TopLeft()); } diff --git a/uppsrc/ide/LayDes/laylib.cpp b/uppsrc/ide/LayDes/laylib.cpp index 257b02042..dbb9f1aa4 100644 --- a/uppsrc/ide/LayDes/laylib.cpp +++ b/uppsrc/ide/LayDes/laylib.cpp @@ -379,7 +379,7 @@ void EscDraw::DrawSmartText(EscEscape& e) if(ii < e.GetCount()) font = FontEsc(e[ii++]); if(font.GetHeight() == 0) -#ifdef PLATFORM_XFT +#ifdef PLATFORM_X11 font.Height(12); #else font.Height(11); @@ -412,7 +412,7 @@ void EscDraw::GetTextSize(EscEscape& e) WString text = e[0]; Font font = StdFont(); if(font.GetHeight() == 0) -#ifdef PLATFORM_XFT +#ifdef PLATFORM_X11 font.Height(12); #else font.Height(11);