Skip to content

Commit

Permalink
Merge pull request #176 from chrox/master
Browse files Browse the repository at this point in the history
fix segfault when refreshing dummy screen on travis
  • Loading branch information
houqp committed Jun 1, 2014
2 parents 22d7dfd + 17834ae commit 1b94479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ffi/framebuffer_SDL1_2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function fb:getOrientation()
end

function fb:refresh(refreshtype, waveform_mode, x1, y1, w, h)
if self.dummy then return end
if x1 == nil then x1 = 0 end
if y1 == nil then y1 = 0 end

Expand Down
1 change: 1 addition & 0 deletions ffi/framebuffer_SDL2_0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function fb:getOrientation()
end

function fb:refresh(refreshtype, waveform_mode, x1, y1, w, h)
if self.dummy then return end
if x1 == nil then x1 = 0 end
if y1 == nil then y1 = 0 end
if w == nil then w = SDL.w end
Expand Down

0 comments on commit 1b94479

Please sign in to comment.