Skip to content

Commit 56151cf

Browse files
committed
Remove 'Quick Brown' demo
1 parent 30c0d73 commit 56151cf

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

apps/multi.c

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -216,53 +216,6 @@ static void apps_circletext_start(twin_screen_t *screen,
216216
twin_window_show(window);
217217
}
218218

219-
static void apps_quickbrown_start(twin_screen_t *screen,
220-
int x,
221-
int y,
222-
int w,
223-
int h)
224-
{
225-
twin_window_t *window = twin_window_create(
226-
screen, TWIN_ARGB32, TwinWindowApplication, x, y, w, h);
227-
int wid = window->client.right - window->client.left;
228-
int hei = window->client.bottom - window->client.top;
229-
twin_pixmap_t *pixmap = window->pixmap;
230-
twin_path_t *path = twin_path_create();
231-
twin_path_t *pen = twin_path_create();
232-
twin_pixmap_t *alpha = twin_pixmap_create(TWIN_A8, wid, hei);
233-
twin_operand_t source, mask;
234-
twin_fixed_t fx, fy;
235-
int s;
236-
237-
twin_window_set_name(window, "Quick Brown");
238-
239-
twin_fill(pixmap, 0xffffffff, TWIN_SOURCE, 0, 0, wid, hei);
240-
241-
twin_path_circle(pen, 0, 0, D(1));
242-
243-
fx = D(3);
244-
fy = D(8);
245-
for (s = 6; s < 36; s++) {
246-
twin_path_move(path, fx, fy);
247-
twin_path_set_font_size(path, D(s));
248-
twin_path_utf8(path, "the quick brown fox jumps over the lazy dog.");
249-
twin_path_utf8(path, "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.");
250-
fy += D(s);
251-
}
252-
253-
twin_paint_path(alpha, 0xff000000, path);
254-
twin_path_destroy(path);
255-
twin_path_destroy(pen);
256-
source.source_kind = TWIN_SOLID;
257-
source.u.argb = 0xff000000;
258-
mask.source_kind = TWIN_PIXMAP;
259-
mask.u.pixmap = alpha;
260-
twin_composite(pixmap, 0, 0, &source, 0, 0, &mask, 0, 0, TWIN_OVER, wid,
261-
hei);
262-
twin_pixmap_destroy(alpha);
263-
twin_window_show(window);
264-
}
265-
266219
static void apps_ascii_start(twin_screen_t *screen, int x, int y, int w, int h)
267220
{
268221
twin_window_t *window = twin_window_create(
@@ -421,7 +374,6 @@ void apps_multi_start(twin_screen_t *screen,
421374
(void) name;
422375
apps_circletext_start(screen, x, y, w, h);
423376
apps_multiline_start(screen, x += 20, y += 20, w * 2 / 3, h * 2 / 3);
424-
apps_quickbrown_start(screen, x += 20, y += 20, w, h);
425377
apps_ascii_start(screen, x += 20, y += 20, w, h);
426378
apps_flower_start(screen, x += 20, y += 20, w, h);
427379
apps_blur(screen, x += 20, y += 20, w / 2, h / 2);

0 commit comments

Comments
 (0)