From 5cd56fc48463de4c084b7aa9b8edeb501a7ac9fd Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 21 Jun 2025 15:28:16 +0800 Subject: a basic background Now we can draw a window with a basic background. But the resizing part is troublesome, I need to figure out where the bugs are and fix them later. But we need to render files in the window, so we need to load some file, and render the texts on the screen. The loading part is easy, whereas the text part needs reflections: we need some structure to hold the buffers and then some structure for the to-be-rendered part. --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 0fbf198..0e8b08f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,8 +24,8 @@ fn main() { event_loop.run_app(&mut backend).unwrap(); - backend.draw_text(&span); - backend.present(); - backend.clear(); - backend.shutdown(); + // backend.draw_text(&span); + // backend.present(); + // backend.clear(); + // backend.shutdown(); } -- cgit v1.2.3-18-g5258