From c91d1fdccaf3ebc542e8e180152a19f4874f7588 Mon Sep 17 00:00:00 2001 From: ffreyer Date: Wed, 12 Jul 2023 14:46:01 +0200 Subject: [PATCH] Fix errors and bugs remove yield try colorbuffer() to fix test error try fixing line AA scaling --- GLMakie/src/drawing_primitives.jl | 2 +- GLMakie/test/unit_tests.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GLMakie/src/drawing_primitives.jl b/GLMakie/src/drawing_primitives.jl index ec3e37b4f51..2632aace11f 100644 --- a/GLMakie/src/drawing_primitives.jl +++ b/GLMakie/src/drawing_primitives.jl @@ -341,10 +341,10 @@ function draw_atomic(screen::Screen, scene::Scene, @nospecialize(x::LineSegments if haskey(data, :intensity) data[:color] = pop!(data, :intensity) end - # Tweak things for px_per_unit resolution = pop!(data, :resolution) data[:resolution] = map((ppu, res) -> ppu .* res, px_per_unit, resolution) + return draw_linesegments(screen, positions, data) end end diff --git a/GLMakie/test/unit_tests.jl b/GLMakie/test/unit_tests.jl index e27f8375562..b91a3ea8088 100644 --- a/GLMakie/test/unit_tests.jl +++ b/GLMakie/test/unit_tests.jl @@ -306,6 +306,7 @@ end # decrease the scale factor after-the-fact screen.scalefactor[] = 1 + GLMakie.Makie.colorbuffer(screen) @test GLMakie.window_size(screen.glscreen) == scaled(screen, (W, H)) # save images of different resolutions