ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.86 by root, Fri May 19 16:43:56 2006 UTC vs.
Revision 1.87 by root, Fri May 19 18:39:06 2006 UTC

713MODULE = CFClient PACKAGE = CFClient::Layout 713MODULE = CFClient PACKAGE = CFClient::Layout
714 714
715CFClient::Layout 715CFClient::Layout
716new (SV *class, int rgba = 0) 716new (SV *class, int rgba = 0)
717 CODE: 717 CODE:
718#if _WIN32
719 rgba = 0;//D
720#endif
718 New (0, RETVAL, 1, struct cf_layout); 721 New (0, RETVAL, 1, struct cf_layout);
719 722
720 RETVAL->pl = pango_layout_new (rgba ? cairo_context : ft2_context); 723 RETVAL->pl = pango_layout_new (rgba ? cairo_context : ft2_context);
721 RETVAL->rgba = rgba; 724 RETVAL->rgba = rgba;
722 RETVAL->r = 1.; 725 RETVAL->r = 1.;
902 905
903 while (p < e) 906 while (p < e)
904 { 907 {
905 uint32_t rgba = *p; 908 uint32_t rgba = *p;
906 rgba = (rgba >> 24) | (rgba << 8); 909 rgba = (rgba >> 24) | (rgba << 8);
910#if 0
911#ifdef _WIN32
912 {//D
913 uint8_t r = rgba >> 24;
914 uint8_t g = rgba >> 16;
915 uint8_t b = rgba >> 8;
916 uint8_t a = rgba >> 0;
917
918 rgba = (rgba & 0xffffff00) | a;
919 }
920#endif
921#endif
907 rgba = SDL_SwapBE32 (rgba); 922 rgba = SDL_SwapBE32 (rgba);
908 *p++ = rgba; 923 *p++ = rgba;
909 } 924 }
910 } 925 }
911 926

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines