nasty bug in scroll update i couldn't wrap my head around

This commit is contained in:
cqc
2024-05-14 21:46:03 -05:00
parent dcf34873a4
commit 8ccef92056
2 changed files with 63 additions and 25 deletions

View File

@ -109,9 +109,9 @@ let () =
(TextBuffer.of_repo
~path:[ ".config"; "init.ml" ]
~repo:rootrepo));
textedit
(*textedit
(TextEdit.multiline ui
(TextBuffer.of_repo ~path:[ "README" ] ~repo:rootrepo));
(TextBuffer.of_repo ~path:[ "README" ] ~repo:rootrepo)); *)
])
in
@ -153,7 +153,11 @@ let () =
Gl.enable Gl.cull_face_enum;
Gl.disable Gl.depth_test;
let width, height = (float win_w, float win_h) in
let width, height =
( float win_w,
float (win_h - 50)
(* TKTK might be an artifact of exwm or something *) )
in
let box = Gg.(Box2.v V2.zero Size2.(v width height)) in
Gv.begin_frame ctx ~width ~height ~device_ratio:1.;
Perfgraph.render graph ctx (width -. 205.) 5.;