Skip to content

Commit

Permalink
fixed analogclock in the pi
Browse files Browse the repository at this point in the history
The white.png image was loaded asynchronously on the pi unlike on
the desktop version where image loading is done synchronously. So
it might take a (short) moment, before white.png is usable. Since
the clock face is only rendered once in the first frame the white
image isn't ready yet, therefore the snapshotted image is completely
empty. Oops.

Now uses resource.create_colored_texture instead.
  • Loading branch information
dividuum committed Sep 5, 2016
1 parent f27b449 commit 3092e7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion analogclock/node.lua
@@ -1,5 +1,7 @@
gl.setup(1024, 1024)
util.auto_loader(_G)

local dot = resource.load_image "dot.png"
local white = resource.create_colored_texture(1,1,1,1)

local base_time = N.base_time or 0

Expand Down
Binary file removed analogclock/white.png
Binary file not shown.

0 comments on commit 3092e7b

Please sign in to comment.