Mercurial > hg > xemacs-beta
diff pkg-src/tree-x/dissolve.h @ 167:85ec50267440 r20-3b10
Import from CVS: tag r20-3b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:45:46 +0200 |
parents | 0132846995bd |
children | 15872534500d |
line wrap: on
line diff
--- a/pkg-src/tree-x/dissolve.h Mon Aug 13 09:44:44 2007 +0200 +++ b/pkg-src/tree-x/dissolve.h Mon Aug 13 09:45:46 2007 +0200 @@ -9,56 +9,71 @@ #define first_width 16 #define first_height 16 -static char first_bits[] = { +static unsigned char first_bits[] = { 0x88, 0x04, 0x00, 0x80, 0x20, 0x10, 0x00, 0x81, 0x12, 0x00, 0x00, 0x00, 0x00, 0x02, 0x82, 0x40, 0x00, 0x00, 0x12, 0x14, 0x00, 0x00, 0x0a, 0x28, 0x40, 0x01, 0x05, 0x00, 0xa0, 0x92, 0x08, 0x00 }; #define second_width 16 #define second_height 16 -static char second_bits[] = { +static unsigned char second_bits[] = { 0x51, 0x20, 0x04, 0x02, 0x00, 0x88, 0x02, 0x00, 0x08, 0x09, 0x40, 0x00, 0x04, 0x04, 0x00, 0xa0, 0x80, 0x08, 0x08, 0x00, 0x00, 0xa8, 0x00, 0x00, 0x28, 0x28, 0x00, 0x80, 0x01, 0x00, 0x10, 0x82 }; #define third_width 16 #define third_height 16 -static char third_bits[] = { +static unsigned char third_bits[] = { 0x00, 0x01, 0x12, 0x44, 0x00, 0x01, 0x00, 0x08, 0x00, 0x42, 0x2a, 0x08, 0x80, 0x00, 0x04, 0x10, 0x01, 0x04, 0x00, 0x80, 0xa9, 0x04, 0x00, 0x00, 0x00, 0x10, 0x0a, 0x05, 0x40, 0x00, 0x00, 0x50 }; #define fourth_width 16 #define fourth_height 16 -static char fourth_bits[] = { +static unsigned char fourth_bits[] = { 0x02, 0x88, 0x80, 0x00, 0x04, 0x40, 0x11, 0x02, 0x40, 0x90, 0x05, 0x00, 0x00, 0x08, 0x11, 0x01, 0x40, 0x00, 0x00, 0x41, 0x14, 0x00, 0x00, 0x12, 0x10, 0x00, 0x40, 0x40, 0x08, 0x00, 0xa0, 0x04 }; #define fifth_width 16 #define fifth_height 16 -static char fifth_bits[] = { +static unsigned char fifth_bits[] = { 0x24, 0x00, 0x00, 0x08, 0x09, 0x20, 0x20, 0x04, 0x00, 0x00, 0x00, 0x85, 0x10, 0x20, 0x40, 0x02, 0x14, 0x40, 0x00, 0x08, 0x02, 0x01, 0x10, 0x40, 0x04, 0x04, 0x20, 0x20, 0x00, 0x00, 0x42, 0x29 }; #define sixth_width 16 #define sixth_height 16 -static char sixth_bits[] = { +static unsigned char sixth_bits[] = { 0x00, 0x12, 0x28, 0x00, 0x02, 0x00, 0x88, 0x00, 0x01, 0x20, 0x90, 0x02, 0x01, 0x50, 0x20, 0x04, 0x08, 0xa0, 0x41, 0x00, 0x00, 0x00, 0x24, 0x05, 0x00, 0x80, 0x00, 0x10, 0x10, 0x40, 0x05, 0x00 }; #define seventh_width 16 #define seventh_height 16 -static char seventh_bits[] = { +static unsigned char seventh_bits[] = { 0x00, 0x40, 0x01, 0x10, 0x90, 0x02, 0x00, 0x50, 0xa4, 0x04, 0x00, 0x20, 0x20, 0x80, 0x08, 0x08, 0x00, 0x01, 0x04, 0x00, 0x40, 0x52, 0x00, 0x00, 0x81, 0x42, 0x10, 0x00, 0x04, 0x25, 0x00, 0x00 }; #define eighth_width 16 #define eighth_height 16 -static char eighth_bits[] = { +static unsigned char eighth_bits[] = { 0x00, 0x00, 0x40, 0x21, 0x40, 0x04, 0x44, 0x20, 0x00, 0x00, 0x00, 0x50, 0x4a, 0x01, 0x00, 0x00, 0x22, 0x12, 0xa0, 0x22, 0x00, 0x00, 0xc1, 0x80, 0x02, 0x00, 0x80, 0x0a, 0x02, 0x08, 0x00, 0x00 }; + +void +InitializeDissolveEffect(Display *dpy, + Drawable drawable, + int fg_pixel, + int bg_pixel); + +void +DissolveTree(Display *dpy, + Window drawable, + XRectangle rectangles[], + int nrectangles, + XSegment segments[], + int nsegments, + int mode);