--- deliantra/Deliantra-Client/Client.xs 2008/01/06 18:12:20 1.254 +++ deliantra/Deliantra-Client/Client.xs 2008/03/24 01:15:21 1.257 @@ -53,10 +53,10 @@ #endif #if !PANGO_VERSION_CHECK (1, 15, 2) -# define pango_layout_get_line_readonly pango_layout_get_line_readonly -# define pango_layout_get_lines_readonly pango_layout_get_lines_readonly -# define pango_layout_iter_get_line_readonly pango_layout_iter_get_line_readonly -# define pango_layout_iter_get_run_readonly pango_layout_iter_get_run_readonly +# define pango_layout_get_line_readonly pango_layout_get_line +# define pango_layout_get_lines_readonly pango_layout_get_lines +# define pango_layout_iter_get_line_readonly pango_layout_iter_get_line +# define pango_layout_iter_get_run_readonly pango_layout_iter_get_run #endif #ifndef _WIN32 @@ -675,6 +675,7 @@ opengl_fontmap = pango_opengl_font_map_new (); pango_opengl_font_map_set_default_substitute ((PangoOpenGLFontMap *)opengl_fontmap, substitute_func, 0, 0); opengl_context = pango_opengl_font_map_create_context ((PangoOpenGLFontMap *)opengl_fontmap); + /*pango_context_set_font_description (opengl_context, default_font);*/ #if PANGO_VERSION_CHECK (1, 15, 2) pango_context_set_language (opengl_context, pango_language_from_string ("en")); /*pango_context_set_base_dir (opengl_context, PANGO_DIRECTION_WEAK_LTR);*/ @@ -772,6 +773,9 @@ int SDL_GetAppState () +int +SDL_GetModState () + void poll_events () PPCODE: @@ -914,10 +918,12 @@ #endif } -void +int add_font (char *file) CODE: - FcConfigAppFontAddFile (0, (const FcChar8 *)file); + RETVAL = FcConfigAppFontAddFile (0, (const FcChar8 *)file); + OUTPUT: + RETVAL void load_image_inline (SV *image_)