This commit is contained in:
cqc
2024-05-14 22:42:58 -05:00
parent 8ccef92056
commit 51dd25deee
2 changed files with 21 additions and 15 deletions

View File

@ -103,6 +103,8 @@ let () =
ref
Layout.(
vbox
~style:
Style.{ default with margin = Margin.symmetric 10.0 10.0 }
[
textedit
(TextEdit.multiline ui
@ -153,12 +155,10 @@ let () =
Gl.enable Gl.cull_face_enum;
Gl.disable Gl.depth_test;
let width, height =
( float win_w,
float (win_h - 50)
(* TKTK might be an artifact of exwm or something *) )
let width, height = (float win_w, float win_h) in
let box =
Gg.(Box2.v V2.zero Size2.(v width (height -. 20.)))
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.;
(* F.epr "box=%a@." Gg.Box2.pp box;