Skip to content

Commit b990e94

Browse files
committed
Remove outdated demo applications
1 parent 4348120 commit b990e94

File tree

7 files changed

+0
-134
lines changed

7 files changed

+0
-134
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ endif
137137

138138
libapps.a_files-y := apps/dummy.c
139139
libapps.a_files-$(CONFIG_DEMO_MULTI) += apps/multi.c
140-
libapps.a_files-$(CONFIG_DEMO_HELLO) += apps/hello.c
141140
libapps.a_files-$(CONFIG_DEMO_CLOCK) += apps/clock.c
142141
libapps.a_files-$(CONFIG_DEMO_CALCULATOR) += apps/calc.c
143142
libapps.a_files-$(CONFIG_DEMO_LINE) += apps/line.c

apps/apps_hello.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

apps/hello.c

Lines changed: 0 additions & 51 deletions
This file was deleted.

apps/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "apps_animation.h"
1717
#include "apps_calc.h"
1818
#include "apps_clock.h"
19-
#include "apps_hello.h"
2019
#include "apps_image.h"
2120
#include "apps_line.h"
2221
#include "apps_multi.h"
@@ -91,9 +90,6 @@ static void init_demo_apps(twin_context_t *ctx)
9190
#if defined(CONFIG_DEMO_MULTI)
9291
apps_multi_start(screen, "Demo", 100, 100, 400, 400);
9392
#endif
94-
#if defined(CONFIG_DEMO_HELLO)
95-
apps_hello_start(screen, "Hello, World", 0, 0, 200, 200);
96-
#endif
9793
#if defined(CONFIG_DEMO_CLOCK)
9894
apps_clock_start(screen, "Clock", 10, 10, 200, 200);
9995
#endif

apps/multi.c

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
225176
static 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
}

configs/Kconfig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,6 @@ config DEMO_MULTI
270270
Comprehensive demo with multiple windows and widgets.
271271
Demonstrates window management and event handling.
272272

273-
config DEMO_HELLO
274-
bool "Build Hello world demo"
275-
default y
276-
depends on DEMO_APPLICATIONS
277-
help
278-
Simple "Hello World" demonstration program.
279-
Minimal example of Mado window system usage.
280-
281273
config DEMO_CLOCK
282274
bool "Build clock demo"
283275
default y

configs/defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ CONFIG_LOADER_JPEG=y
44
CONFIG_LOADER_GIF=y
55
CONFIG_DEMO_APPLICATIONS=y
66
CONFIG_DEMO_MULTI=y
7-
CONFIG_DEMO_HELLO=y
87
CONFIG_DEMO_CLOCK=y
98
CONFIG_DEMO_CALCULATOR=y
109
CONFIG_DEMO_LINE=y

0 commit comments

Comments
 (0)