Skip to content

Commit

Permalink
Fix errors and bugs
Browse files Browse the repository at this point in the history
remove yield

try colorbuffer() to fix test error

try fixing line AA scaling
  • Loading branch information
ffreyer authored and SimonDanisch committed Aug 16, 2023
1 parent 8959d00 commit c91d1fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GLMakie/src/drawing_primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions GLMakie/test/unit_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c91d1fd

Please sign in to comment.