summaryrefslogtreecommitdiff
path: root/test/pdf_scroll_bench.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/pdf_scroll_bench.zig')
-rw-r--r--test/pdf_scroll_bench.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pdf_scroll_bench.zig b/test/pdf_scroll_bench.zig
index 391a98e6..1a27b828 100644
--- a/test/pdf_scroll_bench.zig
+++ b/test/pdf_scroll_bench.zig
@@ -263,7 +263,7 @@ fn probeTravel(config: Config) Travel {
const first_frame_ns = nowNs() -| started;
const pane = core.panes[0] orelse fatal("PDF pane disappeared", .{});
if (pane.pdf == null) fatal("{s} did not open as a PDF", .{path});
- const pv = &pane.pdf.?;
+ const pv = pane.pdf.?;
if (!pv.layout_valid or pv.document_height == 0)
fatal("the pixel strip never laid out; is native_images/cell_pixels wired?", .{});
// Exactly the clamp scrollPdfDocument enforces, so the last fling frame
@@ -356,7 +356,7 @@ fn measure(config: Config, plan: Plan) !Result {
_ = try core.render(frame_arena.allocator());
drainEffects(core);
const pane = core.panes[0] orelse fatal("PDF pane disappeared", .{});
- const pv = &pane.pdf.?;
+ const pv = pane.pdf.?;
const rect = core.rects[0];
// Anywhere inside the pane body resolves to this pane's hover, which
// is what routes the notch; the exact cell is irrelevant to a wheel.