diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-04-05 00:38:35 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2024-04-18 13:11:51 -0400 |
commit | a6570b7d378b6236c40d2e2bd983f7d53ad479e3 (patch) | |
tree | 6e1562a78c07a1fe0e05b36cf10542aff5ca7482 /apps/plugins/lua/include_lua/image_save.lua | |
parent | 7f1b49693cd84b6e03e05d8a980fb99f26a781b1 (diff) | |
download | rockbox-a6570b7d378b6236c40d2e2bd983f7d53ad479e3.tar.gz rockbox-a6570b7d378b6236c40d2e2bd983f7d53ad479e3.zip |
lua use lcd_drawline to draw lines inside rliimages
rewrite draw_text to use new viewport buffer
set_viewport now accepts rliimage to allowe interfacing with rb. functions
fix long standing 2-bit bug with text drawing in lua
fix 2-bit img
saving bug (i'm guessing just a one off, just enabled clipping)
fix font_getstringsize bug
fix shape of numbers draw_num.lua also add auto centering
add page scrolling to printtable
add a new demo script 'stars'
Change-Id: I866905cee82ee89ebc0eb020a56a7ecdb101bf5e
Diffstat (limited to 'apps/plugins/lua/include_lua/image_save.lua')
-rw-r--r-- | apps/plugins/lua/include_lua/image_save.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/include_lua/image_save.lua b/apps/plugins/lua/include_lua/image_save.lua index 4735af46d7..27e63ca65a 100644 --- a/apps/plugins/lua/include_lua/image_save.lua +++ b/apps/plugins/lua/include_lua/image_save.lua | |||
@@ -198,7 +198,7 @@ do | |||
198 | end | 198 | end |
199 | 199 | ||
200 | -- Bitmap lines start at bottom unless biHeight is negative | 200 | -- Bitmap lines start at bottom unless biHeight is negative |
201 | for point in _points(img, 1, h, w + bytesleft, 1) do | 201 | for point in _points(img, 1, h, w + bytesleft, 1, 1, 1, true) do |
202 | imgdata[#imgdata + 1] = fs_bytes_E(bpp, point or 0) | 202 | imgdata[#imgdata + 1] = fs_bytes_E(bpp, point or 0) |
203 | 203 | ||
204 | if #fbuffer >= 31 then -- buffered write, increase # for performance | 204 | if #fbuffer >= 31 then -- buffered write, increase # for performance |