Skip to content

Commit

Permalink
fb_mxcfb: Don't wraparound update markers until UINT32_MAX
Browse files Browse the repository at this point in the history
On the off-chance some wonky kernels out there have a
special aversion to discontinuous markers...
  • Loading branch information
NiLuJe committed Oct 27, 2022
1 parent 3ba5c6b commit 21f4b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffi/framebuffer_mxcfb.lua
Expand Up @@ -56,10 +56,10 @@ local framebuffer = {

--[[ refresh list management: --]]
-- Returns an incrementing marker value, w/ a sane wraparound.
-- Returns an incrementing marker value, w/ a sane wraparound for an uint32_t.
function framebuffer:_get_next_marker()
local marker = self.marker + 1
if marker > 128 then
if marker > 0xFFFFFFFF then
marker = 1
end
Expand Down

0 comments on commit 21f4b97

Please sign in to comment.