Skip to content

Commit

Permalink
ffi/sdl: tweak support for EMULATE_BW_SCREEN (#1835)
Browse files Browse the repository at this point in the history
Check for a non-empty value.
  • Loading branch information
benoit-pierre committed Jun 22, 2024
1 parent 00340bd commit f80dc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffi/framebuffer_SDL2_0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function framebuffer:init()
else
self.bb = BB.new(600, 800)
end
if os.getenv("EMULATE_BW_SCREEN") then
if (os.getenv("EMULATE_BW_SCREEN") or "") ~= "" then
self.device.hasColorScreen = function() return false end
self.isColorEnabled = function() return false end
end
Expand Down

0 comments on commit f80dc33

Please sign in to comment.