diff options
| author | Chris B <1029chris@gmail.com> | 2016-02-20 21:45:40 -0800 |
|---|---|---|
| committer | Chris B <1029chris@gmail.com> | 2016-02-20 21:45:40 -0800 |
| commit | 77613f5d3f178e3dc139d39f71e8fd33a67cfb44 (patch) | |
| tree | 6de14b91620c23f90ef77283e69b821f1701398d /desktop.lua | |
| parent | f57811080ca25e6e3f0ec7463f3dcf640f6e0a39 (diff) | |
Set default wallpaper to nothing at all
Diffstat (limited to 'desktop.lua')
| -rw-r--r-- | desktop.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop.lua b/desktop.lua index cc8ac7e..64dd26b 100644 --- a/desktop.lua +++ b/desktop.lua @@ -1,6 +1,8 @@ function drawDesktop() love.graphics.setColor(255,255,255) - love.graphics.draw(desktop.bg.current) + if desktop.bg.current ~= 0 then + love.graphics.draw(desktop.bg.current, 0, 0, 0, sys.w/1920, sys.h/1280) + end if sys.mouse.p.p == true and sys.mouse.drag == false then love.graphics.setColor(0,80,160,80) love.graphics.rectangle("fill", sys.mouse.p.x, sys.mouse.p.y, sys.mouse.x-sys.mouse.p.x, sys.mouse.y-sys.mouse.p.y) |
