FreeBASIC  0.91.0
gfx_print_wstr.c
Go to the documentation of this file.
1 /* graphical mode wstring text output */
2 
3 #include "fb_gfx.h"
4 
5 void fb_GfxPrintBufferWstrEx(const FB_WCHAR *buffer, size_t len, int mask)
6 {
7  /* Unicode gfx font support is out of the scope of gfxlib, convert to ascii */
8 
9  char temp[len + 1];
10 
11  if( len > 0 )
12  fb_wstr_ConvToA( temp, buffer, len );
13  else
14  *temp = '\0';
15 
16  fb_GfxPrintBufferEx( temp, len, mask );
17 }
18 
19 void fb_GfxPrintBufferWstr(const FB_WCHAR *buffer, int mask)
20 {
21  fb_GfxPrintBufferWstrEx( buffer, fb_wstr_Len(buffer), mask);
22 }