summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2025-06-21 15:28:16 +0800
committerJSDurand <mmemmew@gmail.com>2025-06-21 15:28:46 +0800
commit5cd56fc48463de4c084b7aa9b8edeb501a7ac9fd (patch)
treeb8bbdf46770851c53275a15ad162e5e2d901d760 /src/main.rs
parentf01b364072d4243fcc7dbd0f912f5e28280c77c5 (diff)
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
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();
}