@@ -173,55 +173,6 @@ static void apps_ascii_start(twin_screen_t *screen, int x, int y, int w, int h)
173173 twin_window_show (window );
174174}
175175
176- static void apps_jelly_start (twin_screen_t * screen , int x , int y , int w , int h )
177- {
178- twin_window_t * window = twin_window_create (
179- screen , TWIN_ARGB32 , TwinWindowApplication , x , y , w , h );
180- int wid = window -> client .right - window -> client .left ;
181- int hei = window -> client .bottom - window -> client .top ;
182- twin_pixmap_t * pixmap = window -> pixmap ;
183- twin_path_t * path = twin_path_create ();
184- twin_fixed_t fx , fy ;
185- int s ;
186-
187- twin_window_set_name (window , "Jelly" );
188-
189- twin_fill (pixmap , 0xffffffff , TWIN_SOURCE , 0 , 0 , wid , hei );
190-
191- fx = D (3 );
192- fy = D (8 );
193- for (s = 6 ; s < 36 ; s += 2 ) {
194- twin_path_set_font_size (path , D (s ));
195- fy += D (s + 2 );
196- twin_path_move (path , fx , fy );
197- #define TEXT "jelly text"
198- /* twin_path_set_font_style (path, TwinStyleUnhinted); */
199- twin_path_utf8 (path , TEXT );
200- twin_paint_path (pixmap , 0xff000000 , path );
201- twin_path_empty (path );
202- {
203- twin_text_metrics_t m ;
204- twin_path_t * stroke = twin_path_create ();
205- twin_path_set_matrix (stroke , twin_path_current_matrix (path ));
206- twin_text_metrics_utf8 (path , TEXT , & m );
207- twin_path_translate (stroke , TWIN_FIXED_HALF , TWIN_FIXED_HALF );
208- twin_path_move (stroke , fx , fy );
209- twin_path_draw (stroke , fx + m .width , fy );
210- twin_paint_stroke (pixmap , 0xffff0000 , stroke , D (1 ));
211- twin_path_empty (stroke );
212- twin_path_move (stroke , fx + m .left_side_bearing , fy - m .ascent );
213- twin_path_draw (stroke , fx + m .right_side_bearing , fy - m .ascent );
214- twin_path_draw (stroke , fx + m .right_side_bearing , fy + m .descent );
215- twin_path_draw (stroke , fx + m .left_side_bearing , fy + m .descent );
216- twin_path_draw (stroke , fx + m .left_side_bearing , fy - m .ascent );
217- twin_paint_stroke (pixmap , 0xff00ff00 , stroke , D (1 ));
218- twin_path_destroy (stroke );
219- }
220- }
221- twin_path_destroy (path );
222- twin_window_show (window );
223- }
224-
225176static void draw_flower (twin_path_t * path ,
226177 twin_fixed_t radius ,
227178 int number_of_petals )
@@ -334,7 +285,6 @@ void apps_multi_start(twin_screen_t *screen,
334285 apps_line_start (screen , x += 20 , y += 20 , w , h );
335286 apps_quickbrown_start (screen , x += 20 , y += 20 , w , h );
336287 apps_ascii_start (screen , x += 20 , y += 20 , w , h );
337- apps_jelly_start (screen , x += 20 , y += 20 , w / 2 , h );
338288 apps_flower_start (screen , x += 20 , y += 20 , w , h );
339289 apps_blur (screen , x += 20 , y += 20 , w / 2 , h / 2 );
340290}
0 commit comments