Skip to content

Commit

Permalink
tweak method specializers
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Sep 22, 2023
1 parent c798ae3 commit cc563ca
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions frontends/sdl2/text-buffer-impl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,10 @@
(- (lem-core/display-3::window-view-height window) y)))
(sdl2:render-fill-rect (lem-sdl2::current-renderer) rect)))

(defmethod lem-core::redraw-buffer :before ((implementation lem-sdl2::sdl2)
(buffer lem-core/display-3::text-buffer-v2)
window
force)
(defmethod lem-core::redraw-buffer :before ((implementation lem-sdl2::sdl2) buffer window force)
(sdl2:set-render-target (lem-sdl2::current-renderer)
(lem-sdl2::view-texture (lem:window-view window))))

(defmethod lem-core::redraw-buffer :around ((implementation lem-sdl2::sdl2)
(buffer lem-core/display-3::text-buffer-v2)
window
force)
(defmethod lem-core::redraw-buffer :around ((implementation lem-sdl2::sdl2) buffer window force)
(sdl2:in-main-thread ()
(call-next-method)))

0 comments on commit cc563ca

Please sign in to comment.