File tree Expand file tree Collapse file tree 7 files changed +19
-42
lines changed
Expand file tree Collapse file tree 7 files changed +19
-42
lines changed Original file line number Diff line number Diff line change 77* .cmx
88* .cmxs
99* .cmxa
10+ .merlin
1011
1112# ocamlbuild working directory
1213_build /
@@ -27,6 +28,3 @@ node_modules
2728
2829* .lock
2930yarn-error.log
30-
31- example /.merlin
32- lib /.merlin
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11all : driver
22
33driver :
4- dune build driver.bc
4+ dune build driver.bc pres_state.cma
55
66clean :
77 dune clean
Original file line number Diff line number Diff line change 1+ (executable
2+ (name driver)
3+ (modules mod_use slideshow driver)
4+ (libraries tgls.tgles2 tsdl findlib.dynload compiler-libs.toplevel wall)
5+ (flags :standard -linkall))
6+
7+ (library
8+ (name pres_state)
9+ (modules pres_state)
10+ (libraries wall))
Original file line number Diff line number Diff line change @@ -4,14 +4,16 @@ let background =
44 Paint. linear_gradient ~sx: 0.0 ~sy: 0.0 ~ex: 1024.0 ~ey: 0.0
55 ~inner: Color. white ~outer: (Color. with_a Color. blue 0.5 )
66
7- let mediabox = Path. make (fun ctx -> Path. rect ctx 0.0 0.0 1024.0 768.0 )
7+ let mediabox = Path. make @@ fun t ->
8+ Path. rect t ~x: 0.0 ~y: 0.0 ~w: 1024.0 ~h: 768.0
89
910let load_font name =
1011 let ic = open_in_bin name in
1112 let dim = in_channel_length ic in
1213 let fd = Unix. descr_of_in_channel ic in
1314 let buffer =
14- Bigarray.Array1. map_file fd Bigarray. int8_unsigned Bigarray. c_layout false dim
15+ Bigarray. array1_of_genarray @@
16+ Unix. map_file fd Bigarray. int8_unsigned Bigarray. c_layout false [|dim|]
1517 in
1618 let offset = List. hd (Stb_truetype. enum buffer) in
1719 match Stb_truetype. init buffer offset with
Original file line number Diff line number Diff line change 1+ [@@@ ocaml.warning " -6" ]
12open Wall
23open Wall_text
34open Pres_state
@@ -201,7 +202,7 @@ Slideshow.set_slides Slideshow.window [
201202 Transform. scale (1.0 +. f /. 4.0 ) f)
202203 (Image. paint paint (Image. fill circle)))
203204 ]);
204- (fun st ->
205+ (fun _st ->
205206 let outline = Outline. make ~cap: `ROUND ~width: 10.0 () in
206207 let circle = Path. make (fun ctx ->
207208 Path. circle ctx 0.0 0.0 100.0
@@ -454,7 +455,7 @@ Slideshow.set_slides Slideshow.window [
454455 code " Image.transform (skew %a %a) rect" pf sx pf sy;
455456 ]);
456457 (fun _ -> api_outline `Composition );
457- (fun st ->
458+ (fun _st ->
458459 let rect =
459460 Path. make (fun ctx -> Path. rect ctx (- 120.0 ) (- 120.0 ) 240.0 240.0 )
460461 in
You can’t perform that action at this time.
0 commit comments