summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-07-24 07:31:40 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2018-07-24 07:31:40 +0200
commit1482a31134d411996298d5c0c8db8aa9a029c3b1 (patch)
tree3f9745e85c1e760076869fe258ba36a6113efb6e /apps/plugins
parentaefdd2061dc8bd0ab0f1219e9ce2d7b59224f6d2 (diff)
Try # 3 for lua make file
Change-Id: I888612f3339ffcde28602a4e739b08f630de9c28
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/lua/include_lua/image.lua12
-rw-r--r--apps/plugins/lua/lua.make2
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/lua/include_lua/image.lua b/apps/plugins/lua/include_lua/image.lua
index 71c6c46b1b..c8d7aad9dd 100644
--- a/apps/plugins/lua/include_lua/image.lua
+++ b/apps/plugins/lua/include_lua/image.lua
@@ -297,18 +297,18 @@ local _img = {} do
bmpheader[#bmpheader + 1] = bmp_color_mix(0xFFFFFF, 0, 2, 3)
bmpheader[#bmpheader + 1] = bmp_color(0x0)
elseif depth == 16 then
- if format == 565 then
+ if format == 555 then
-- red bitfield mask
- bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x0000F800)
+ bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x00007C00)
-- green bitfield mask
- bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x000007E0)
+ bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x000003E0)
-- blue bitfield mask
bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x0000001F)
- else -- 555
+ else --565
-- red bitfield mask
- bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x00007C00)
+ bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x0000F800)
-- green bitfield mask
- bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x000003E0)
+ bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x000007E0)
-- blue bitfield mask
bmpheader[#bmpheader + 1] = s_bytesLE(32, 0x0000001F)
end
diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make
index 2d24d7e815..eced2ae42d 100644
--- a/apps/plugins/lua/lua.make
+++ b/apps/plugins/lua/lua.make
@@ -50,7 +50,7 @@ $(LUA_BUILDDIR)/rocklib_aux.o: $(LUA_BUILDDIR)/rocklib_aux.c
$(call PRINTS,CC $(<F))$(CC) $(INCLUDES) $(PLUGINFLAGS) -I $(LUA_SRCDIR) -c $< -o $@
$(LUA_BUILDDIR)/%.lua: $(LUA_INCLUDEDIR)/%.lua
- $(call PRINTS,CP $(subst $(LUA_INCLUDEDIR)/,,$<))cp $< $@
+ $(call PRINTS,CP $(subst $(LUA_INCLUDEDIR)/,,$<))mkdir -p $(LUA_BUILDDIR)/ && cp $< $@
$(LUA_BUILDDIR)/lua.refmap: $(LUA_OBJ) $(TLSFLIB)