Mercurial > MadButterfly
comparison src/X_main.c @ 31:da770188a44d
resize font size for changige of coord.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 05 Aug 2008 16:38:04 +0800 |
parents | e06a4a667ce2 |
children | 69c8e264890d |
comparison
equal
deleted
inserted
replaced
30:e06a4a667ce2 | 31:da770188a44d |
---|---|
141 rdman_redraw_changed(&rdman); | 141 rdman_redraw_changed(&rdman); |
142 XFlush(display); | 142 XFlush(display); |
143 } | 143 } |
144 | 144 |
145 for(i = 0; i < 5; i++) { | 145 for(i = 0; i < 5; i++) { |
146 usleep(500000); | 146 usleep(100000); |
147 paint_color_set(fill1, 1, i % 2, 0, 0.5); | 147 paint_color_set(fill1, 1, i % 2, 0, 0.5); |
148 paint_color_set(fill2, 0, i % 2, 1, 0.5); | 148 paint_color_set(fill2, 0, i % 2, 1, 0.5); |
149 rdman_paint_changed(&rdman, fill1); | 149 rdman_paint_changed(&rdman, fill1); |
150 rdman_paint_changed(&rdman, fill2); | 150 rdman_paint_changed(&rdman, fill2); |
151 rdman_redraw_changed(&rdman); | 151 rdman_redraw_changed(&rdman); |
152 XFlush(display); | 152 XFlush(display); |
153 } | 153 } |
154 | 154 |
155 for(i = 0; i < 4; i++) { | 155 for(i = 0; i < 4; i++) { |
156 usleep(500000); | 156 usleep(100000); |
157 path1->stroke_width -= 1; | 157 path1->stroke_width -= 1; |
158 path2->stroke_width -= 1; | 158 path2->stroke_width -= 1; |
159 rdman_shape_changed(&rdman, path1); | 159 rdman_shape_changed(&rdman, path1); |
160 rdman_shape_changed(&rdman, path2); | 160 rdman_shape_changed(&rdman, path2); |
161 rdman_redraw_changed(&rdman); | 161 rdman_redraw_changed(&rdman); |
162 XFlush(display); | 162 XFlush(display); |
163 } | 163 } |
164 for(i = 0; i < 4; i++) { | 164 for(i = 0; i < 4; i++) { |
165 usleep(500000); | 165 usleep(100000); |
166 path1->stroke_width += 1; | 166 path1->stroke_width += 1; |
167 path2->stroke_width += 1; | 167 path2->stroke_width += 1; |
168 rdman_shape_changed(&rdman, path1); | 168 rdman_shape_changed(&rdman, path1); |
169 rdman_shape_changed(&rdman, path2); | 169 rdman_shape_changed(&rdman, path2); |
170 rdman_redraw_changed(&rdman); | 170 rdman_redraw_changed(&rdman); |
171 XFlush(display); | 171 XFlush(display); |
172 } | 172 } |
173 | 173 |
174 for(i = 0; i < 4; i++) { | 174 for(i = 0; i < 4; i++) { |
175 usleep(500000); | 175 usleep(100000); |
176 text->stroke_width += 1; | 176 text->stroke_width += 1; |
177 rdman_shape_changed(&rdman, text); | 177 rdman_shape_changed(&rdman, text); |
178 coord3->matrix[2] += 5; | 178 coord3->matrix[2] += 5; |
179 rdman_coord_changed(&rdman, coord3); | 179 rdman_coord_changed(&rdman, coord3); |
180 rdman_redraw_changed(&rdman); | 180 rdman_redraw_changed(&rdman); |
181 XFlush(display); | 181 XFlush(display); |
182 } | 182 } |
183 for(i = 0; i < 4; i++) { | 183 for(i = 0; i < 4; i++) { |
184 usleep(500000); | 184 usleep(100000); |
185 text->stroke_width -= 1; | 185 text->stroke_width -= 1; |
186 rdman_shape_changed(&rdman, text); | 186 rdman_shape_changed(&rdman, text); |
187 coord3->matrix[2] -= 5; | 187 coord3->matrix[2] -= 5; |
188 rdman_coord_changed(&rdman, coord3); | 188 rdman_coord_changed(&rdman, coord3); |
189 rdman_redraw_changed(&rdman); | 189 rdman_redraw_changed(&rdman); |
190 XFlush(display); | 190 XFlush(display); |
191 } | 191 } |
192 | 192 |
193 for(i = 0; i < 4; i++) { | 193 for(i = 0; i < 4; i++) { |
194 usleep(500000); | 194 usleep(100000); |
195 text->stroke_width += 1; | 195 text->stroke_width += 1; |
196 rdman_shape_changed(&rdman, text); | 196 rdman_shape_changed(&rdman, text); |
197 coord3->matrix[5] += 5; | 197 coord3->matrix[5] += 5; |
198 rdman_coord_changed(&rdman, coord3); | 198 rdman_coord_changed(&rdman, coord3); |
199 rdman_redraw_changed(&rdman); | 199 rdman_redraw_changed(&rdman); |
200 XFlush(display); | 200 XFlush(display); |
201 } | 201 } |
202 for(i = 0; i < 4; i++) { | 202 for(i = 0; i < 4; i++) { |
203 usleep(500000); | 203 usleep(100000); |
204 text->stroke_width -= 1; | 204 text->stroke_width -= 1; |
205 rdman_shape_changed(&rdman, text); | 205 rdman_shape_changed(&rdman, text); |
206 coord3->matrix[5] -= 5; | 206 coord3->matrix[5] -= 5; |
207 rdman_coord_changed(&rdman, coord3); | 207 rdman_coord_changed(&rdman, coord3); |
208 rdman_redraw_changed(&rdman); | 208 rdman_redraw_changed(&rdman); |