Skip to content

Commit

Permalink
change %render-line to lem-if:render-line
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Oct 1, 2023
1 parent 04966e7 commit dc79636
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontends/ncurses/text-buffer-impl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
(defmethod draw-object ((object lem-core/display-3::image-object) x y window)
(values))

(defmethod lem-core/display-3::%render-line ((implementation lem-ncurses::ncurses) window x y objects height)
(defmethod lem-if:render-line ((implementation lem-ncurses::ncurses) window x y objects height)
(let ((view (lem::window-view window)))
(charms/ll:wmove (lem-ncurses::ncurses-view-scrwin view) y x)
(charms/ll:wclrtoeol (lem-ncurses::ncurses-view-scrwin view))
Expand Down
2 changes: 1 addition & 1 deletion frontends/sdl2/text-buffer-impl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
(lem-sdl2::set-render-color lem-sdl2::*display* (lem-sdl2::display-background-color lem-sdl2::*display*))
(sdl2:render-fill-rect (lem-sdl2::current-renderer) rect)))

(defmethod lem-core/display-3::%render-line ((implementation lem-sdl2::sdl2) window x y objects height)
(defmethod lem-if:render-line ((implementation lem-sdl2::sdl2) window x y objects height)
(clear-to-end-of-line window 0 y height)
(redraw-physical-line window x y objects height))

Expand Down
2 changes: 1 addition & 1 deletion src/display-3.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
:finally (return (nreverse physical-line-objects)))))

(defun render-line (window x y objects height)
(%render-line (lem-core:implementation) window x y objects height))
(lem-if:render-line (lem-core:implementation) window x y objects height))

(defun validate-cache-p (window y height objects)
(loop :for (cache-y cache-height cache-objects) :in (drawing-cache window)
Expand Down

0 comments on commit dc79636

Please sign in to comment.