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.
27 lines
617 B
C
27 lines
617 B
C
/* win32_print.h */
|
|
|
|
/* printing support for Tux Paint */
|
|
/* John Popplewell <john@johnnypops.demon.co.uk> */
|
|
|
|
/* Sept. 30, 2002 - Oct. 1, 2002 */
|
|
/* $Id$ */
|
|
|
|
|
|
#ifndef __WIN32_PRINT_H__
|
|
#define __WIN32_PRINT_H__
|
|
|
|
#ifndef _SDL_H
|
|
#include "SDL.h"
|
|
#endif
|
|
|
|
/* if printcfg is NULL, uses the default printer */
|
|
extern const char *SurfacePrint( SDL_Surface *surf,
|
|
const char *printcfg,
|
|
int showdialog );
|
|
extern int IsPrinterAvailable( void );
|
|
|
|
/* additional windows functions requiring <windows.h> */
|
|
extern char *GetDefaultSaveDir(const char *suffix);
|
|
extern char *GetSystemFontDir(void);
|
|
|
|
#endif
|