X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.0%2Fguicast%2Fbcwindowdraw.C;h=0b1f488ce29bfccdc46efd08b516750fbef794e5;hp=30e7b09f2f042d9dc50f5d06455480599cf2b68f;hb=1784ebd93b6c278a5205f040b5b40d8bdd79ed8a;hpb=748ee792315fb16950b10d231acaa4757fe58084 diff --git a/cinelerra-5.0/guicast/bcwindowdraw.C b/cinelerra-5.0/guicast/bcwindowdraw.C index 30e7b09f..0b1f488c 100644 --- a/cinelerra-5.0/guicast/bcwindowdraw.C +++ b/cinelerra-5.0/guicast/bcwindowdraw.C @@ -281,6 +281,18 @@ int BC_WindowBase::wcharpos(const wchar_t *text, XftFont *font, int length, void BC_WindowBase::draw_wtext(int x, int y, const wchar_t *text, int length, BC_Pixmap *pixmap, int *charpos) { + if( !get_resources()->use_xft ) { + if( !get_font_struct(current_font) ) return; + XChar2b xtext[length], *xp = xtext; + for( int i=0; ibyte1 = (unsigned char) (text[i] >> 8); + xp->byte2 = (unsigned char) (text[i] & 0xff); + } + XDrawString16(top_level->display, + pixmap ? pixmap->opaque_pixmap : this->pixmap->opaque_pixmap, + top_level->gc, x, y, xtext, length); + return; + } XRenderColor color; XftColor xft_color; const wchar_t *up, *ubp;