Skip to content

Commit

Permalink
image viewer: open and always fit to screen
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Jul 22, 2023
1 parent 2f591e8 commit 2112473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontends/sdl2/image-buffer.lisp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(defpackage :lem-sdl2/image-buffer
(:use :cl
:lem
:lem-sdl2)
:lem :lem-sdl2)
(:export :image-fit-to-height
:image-fit-to-screen
:image-fit-to-width
Expand Down Expand Up @@ -154,6 +153,7 @@
(setf (buffer-image buffer) image)
(setf (buffer-scaling buffer) 1)
(draw-image buffer image :x 0 :y 0)
(fit-to-screen buffer)
(change-buffer-mode buffer 'image-viewer-mode)
buffer))

Expand Down

0 comments on commit 2112473

Please sign in to comment.