A simple CPU rendered GUI IDE experience.
-rw-r--r--src/main.rs2
-rw-r--r--src/rnd.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index d3b9214..9dd235e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -142,7 +142,7 @@ pub(crate) fn entry(event_loop: EventLoop) {
assert_eq!(unsafe { atexit(cleanup) }, 0);
unsafe { signal(libc::SIGINT, sigint as *const () as usize) };
let ed: &'static mut Editor = unsafe { __ED.assume_init_mut() };
- let ppem = 20.0;
+ let ppem = 18.0;
let ls = 20.0;
// let ed = Box::leak(Box::new(ed));
diff --git a/src/rnd.rs b/src/rnd.rs
index cd4300a..a20fd24 100644
--- a/src/rnd.rs
+++ b/src/rnd.rs
@@ -572,6 +572,7 @@ pub fn render(
let Some(diag) = dawgs.clone().next() else { break 'out };
let dawg = dawgs
.filter_map(|x| {
+ dbg!(&x.related_information);
x.data
.as_ref()
.unwrap_or_default()
@@ -580,7 +581,7 @@ pub fn render(
})
.collect::<String>();
let mut t = pattypan::term::Terminal::new(
- (95, (window.surface_size().width as f32 / fw_15) as u16 - 5),
+ (((window.surface_size().width as f32 / fw_15) as u16 - 5), r as u16 - 5),
false,
);
for b in simplify_path(