mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
Compare commits
2 commits
da5d6f8bf3
...
530cad0c7a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
530cad0c7a | ||
|
|
86f35f1b53 |
3 changed files with 9 additions and 8 deletions
|
|
@ -188,8 +188,9 @@ do
|
||||||
for i=1, #fbuffer do fbuffer[i] = _NIL end -- reuse table
|
for i=1, #fbuffer do fbuffer[i] = _NIL end -- reuse table
|
||||||
|
|
||||||
local imgdata = fbuffer
|
local imgdata = fbuffer
|
||||||
-- pad rows to a multiple of 4 bytes
|
-- pad rows to get even number of pixels
|
||||||
local bytesleft = linebytes - (bytesperpixel * w)
|
local pxleft = (linebytes - (bytesperpixel * w)) / bytesperpixel
|
||||||
|
|
||||||
local t_data = {}
|
local t_data = {}
|
||||||
local fs_bytes_E = s_bytesLE -- default save in Little Endian
|
local fs_bytes_E = s_bytesLE -- default save in Little Endian
|
||||||
|
|
||||||
|
|
@ -198,7 +199,7 @@ do
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Bitmap lines start at bottom unless biHeight is negative
|
-- Bitmap lines start at bottom unless biHeight is negative
|
||||||
for point in _points(img, 1, h, w + bytesleft, 1, 1, 1, true) do
|
for point in _points(img, 1, h, w + pxleft, 1, 1, 1, true) do
|
||||||
imgdata[#imgdata + 1] = fs_bytes_E(bpp, point or 0)
|
imgdata[#imgdata + 1] = fs_bytes_E(bpp, point or 0)
|
||||||
|
|
||||||
if #fbuffer >= 31 then -- buffered write, increase # for performance
|
if #fbuffer >= 31 then -- buffered write, increase # for performance
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
killall hiby_player &>/dev/null
|
killall hiby_player &>/dev/null
|
||||||
killall -9 hiby_player &>/dev/null
|
killall -9 hiby_player &>/dev/null
|
||||||
|
|
||||||
killall bootloader.r1 &>/dev/null
|
killall bootloader.rb &>/dev/null
|
||||||
killall -9 bootloader.r1 &>/dev/null
|
killall -9 bootloader.rb &>/dev/null
|
||||||
|
|
||||||
/usr/bin/bootloader.r1
|
/usr/bin/bootloader.rb
|
||||||
sleep 1s
|
sleep 1s
|
||||||
|
|
@ -51,8 +51,8 @@ unsquashfs -f -d $workingdir_in/rootfs/extracted $workingdir_in/rootfs/rootfs.sq
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# copy 'bootloader'
|
# copy 'bootloader'
|
||||||
cp "$2" "$workingdir_in/rootfs/extracted/usr/bin/bootloader.r1"
|
cp "$2" "$workingdir_in/rootfs/extracted/usr/bin/bootloader.rb"
|
||||||
chmod 0755 "$workingdir_in/rootfs/extracted/usr/bin/bootloader.r1"
|
chmod 0755 "$workingdir_in/rootfs/extracted/usr/bin/bootloader.rb"
|
||||||
|
|
||||||
# copy modified 'hibyplayer.sh' script
|
# copy modified 'hibyplayer.sh' script
|
||||||
cp hiby_player.sh $workingdir_in/rootfs/extracted/usr/bin/
|
cp hiby_player.sh $workingdir_in/rootfs/extracted/usr/bin/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue