From 13ce8d3c4ef0fb3741168dee5f0a14cfe7b48da0 Mon Sep 17 00:00:00 2001 From: yparitcher Date: Sun, 14 Jan 2024 20:34:52 -0500 Subject: [PATCH] setHWRotation: nil guard self.forced_rotation --- ffi/framebuffer_linux.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffi/framebuffer_linux.lua b/ffi/framebuffer_linux.lua index 5b909d44d..dcb489e33 100644 --- a/ffi/framebuffer_linux.lua +++ b/ffi/framebuffer_linux.lua @@ -201,7 +201,7 @@ end function framebuffer:setHWRotation(mode) local vinfo = self._vinfo - vinfo.rotate = self.forced_rotation[mode+1] or mode + vinfo.rotate = self.forced_rotation and self.forced_rotation[mode+1] or mode assert(C.ioctl(self.fd, C.FBIOPUT_VSCREENINFO, vinfo) == 0, "cannot set variable screen info") end