diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/lua/include_lua/image.lua | 12 | ||||
-rw-r--r-- | apps/plugins/lua/lua.make | 2 |
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) |