Skip to content

Commit

Permalink
fix test frontend in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
chrox committed May 31, 2014
1 parent 72a4a09 commit adfd78e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ffi/framebuffer_SDL1_2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ local BB = require("ffi/blitbuffer")
local fb = {}

function fb.open()
if not fb.dummy then
if not fb.dummy then
SDL.open()
-- we present this buffer to the outside
fb.bb = BB.new(SDL.screen.w, SDL.screen.h)
fb.real_bb = BB.new(SDL.screen.w, SDL.screen.h, BB.TYPE_BBRGB32,
SDL.screen.pixels, SDL.screen.pitch)
else
fb.bb = BB.new(600, 800)
end
fb.real_bb = BB.new(600, 800)
end

fb.real_bb = BB.new(SDL.screen.w, SDL.screen.h, BB.TYPE_BBRGB32,
SDL.screen.pixels, SDL.screen.pitch)
fb.real_bb:invert()

fb:refresh()
Expand Down

0 comments on commit adfd78e

Please sign in to comment.