comparison pkg-src/tree-x/dissolve.c @ 169:15872534500d r20-3b11

Import from CVS: tag r20-3b11
author cvs
date Mon, 13 Aug 2007 09:46:53 +0200
parents 85ec50267440
children
comparison
equal deleted inserted replaced
168:9851d5c6556e 169:15872534500d
16 #endif /* HAVE_USLEEP */ 16 #endif /* HAVE_USLEEP */
17 17
18 #include <X11/Xlib.h> 18 #include <X11/Xlib.h>
19 19
20 #include "dissolve.h" 20 #include "dissolve.h"
21
22 #define NUM_DISSOLVE_STEPS 8
23 #define NUM_LINE_STEPS 4
24
25 #define first_width 16
26 #define first_height 16
27 static unsigned char first_bits[] = {
28 0x88, 0x04, 0x00, 0x80, 0x20, 0x10, 0x00, 0x81, 0x12, 0x00, 0x00, 0x00,
29 0x00, 0x02, 0x82, 0x40, 0x00, 0x00, 0x12, 0x14, 0x00, 0x00, 0x0a, 0x28,
30 0x40, 0x01, 0x05, 0x00, 0xa0, 0x92, 0x08, 0x00 };
31
32 #define second_width 16
33 #define second_height 16
34 static unsigned char second_bits[] = {
35 0x51, 0x20, 0x04, 0x02, 0x00, 0x88, 0x02, 0x00, 0x08, 0x09, 0x40, 0x00,
36 0x04, 0x04, 0x00, 0xa0, 0x80, 0x08, 0x08, 0x00, 0x00, 0xa8, 0x00, 0x00,
37 0x28, 0x28, 0x00, 0x80, 0x01, 0x00, 0x10, 0x82 };
38
39 #define third_width 16
40 #define third_height 16
41 static unsigned char third_bits[] = {
42 0x00, 0x01, 0x12, 0x44, 0x00, 0x01, 0x00, 0x08, 0x00, 0x42, 0x2a, 0x08,
43 0x80, 0x00, 0x04, 0x10, 0x01, 0x04, 0x00, 0x80, 0xa9, 0x04, 0x00, 0x00,
44 0x00, 0x10, 0x0a, 0x05, 0x40, 0x00, 0x00, 0x50 };
45
46 #define fourth_width 16
47 #define fourth_height 16
48 static unsigned char fourth_bits[] = {
49 0x02, 0x88, 0x80, 0x00, 0x04, 0x40, 0x11, 0x02, 0x40, 0x90, 0x05, 0x00,
50 0x00, 0x08, 0x11, 0x01, 0x40, 0x00, 0x00, 0x41, 0x14, 0x00, 0x00, 0x12,
51 0x10, 0x00, 0x40, 0x40, 0x08, 0x00, 0xa0, 0x04 };
52
53 #define fifth_width 16
54 #define fifth_height 16
55 static unsigned char fifth_bits[] = {
56 0x24, 0x00, 0x00, 0x08, 0x09, 0x20, 0x20, 0x04, 0x00, 0x00, 0x00, 0x85,
57 0x10, 0x20, 0x40, 0x02, 0x14, 0x40, 0x00, 0x08, 0x02, 0x01, 0x10, 0x40,
58 0x04, 0x04, 0x20, 0x20, 0x00, 0x00, 0x42, 0x29 };
59
60 #define sixth_width 16
61 #define sixth_height 16
62 static unsigned char sixth_bits[] = {
63 0x00, 0x12, 0x28, 0x00, 0x02, 0x00, 0x88, 0x00, 0x01, 0x20, 0x90, 0x02,
64 0x01, 0x50, 0x20, 0x04, 0x08, 0xa0, 0x41, 0x00, 0x00, 0x00, 0x24, 0x05,
65 0x00, 0x80, 0x00, 0x10, 0x10, 0x40, 0x05, 0x00 };
66
67 #define seventh_width 16
68 #define seventh_height 16
69 static unsigned char seventh_bits[] = {
70 0x00, 0x40, 0x01, 0x10, 0x90, 0x02, 0x00, 0x50, 0xa4, 0x04, 0x00, 0x20,
71 0x20, 0x80, 0x08, 0x08, 0x00, 0x01, 0x04, 0x00, 0x40, 0x52, 0x00, 0x00,
72 0x81, 0x42, 0x10, 0x00, 0x04, 0x25, 0x00, 0x00 };
73
74 #define eighth_width 16
75 #define eighth_height 16
76 static unsigned char eighth_bits[] = {
77 0x00, 0x00, 0x40, 0x21, 0x40, 0x04, 0x44, 0x20, 0x00, 0x00, 0x00, 0x50,
78 0x4a, 0x01, 0x00, 0x00, 0x22, 0x12, 0xa0, 0x22, 0x00, 0x00, 0xc1, 0x80,
79 0x02, 0x00, 0x80, 0x0a, 0x02, 0x08, 0x00, 0x00 };
21 80
22 static Pixmap DissolvePixmaps[NUM_DISSOLVE_STEPS]; 81 static Pixmap DissolvePixmaps[NUM_DISSOLVE_STEPS];
23 static GC DissolveInGC; 82 static GC DissolveInGC;
24 static GC DissolveOutGC; 83 static GC DissolveOutGC;
25 static GC DissolveInLineGC[NUM_LINE_STEPS]; 84 static GC DissolveInLineGC[NUM_LINE_STEPS];