Added GetSystemFontDir() and amended WIN32 code so that the system fonts

option work correctly on Windows.
Modified the text gadget so that it correctly handles the 16-bit unicode
characters that SDL sends. The text buffer is held internally as an array
of wchar_t, and makes uses of various wide-character functions.
It is converted back into 16-bit unicode characters to satisfy SDL_ttf.
Tested on Windows and Linux.
This commit is contained in:
John Popplewell 2006-01-11 23:23:34 +00:00
parent 9241a0f507
commit 304f49672b
3 changed files with 93 additions and 13 deletions

View file

@ -22,5 +22,6 @@ extern int IsPrinterAvailable( void );
/* additional windows functions requiring <windows.h> */
extern char *GetDefaultSaveDir(const char *suffix);
extern char *GetSystemFontDir(void);
#endif