Skip to content

Commit dccb2ea

Browse files
committed
Fix content_mode setter to use mode
1 parent c133ba6 commit dccb2ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uing/image_view.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module UIng
3030
end
3131

3232
def content_mode=(mode : ContentMode)
33-
LibUI.image_view_set_content_mode(@ref_ptr, LibUI::ImageViewContentMode.new(mode.value))
33+
LibUI.image_view_set_content_mode(@ref_ptr, mode)
3434
end
3535

3636
def to_unsafe

0 commit comments

Comments
 (0)