Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix red rocklib_img 32-24 bit targets

int is an incompatible type for targets that have 32bit fb_data
need to use FB_SCALARPACK for them

Change-Id: Ib3b5ff19c54d8d1bb76af33d0538a17a71301514

+6 -16
+2 -2
apps/plugins/lua/include_lua/color.lua
··· 44 44 local _NIL = nil -- _NIL placeholder 45 45 46 46 local maxstate = (bit.lshift(1, rb.LCD_DEPTH) - 1) 47 - 47 + 48 48 if rb.LCD_DEPTH > 24 then -- no alpha channels 49 49 maxstate = (bit.lshift(1, 24) - 1) 50 50 end ··· 89 89 r, g, b = (r or 0), (g or 0), (b or 0) 90 90 ru = ru + r; gu = gu + g; bu = bu + b 91 91 else 92 - ru = ru + inc; gu = gu + inc; bu = bu + inc 92 + ru = ru + inc; gu = gu + inc; bu = bu + inc 93 93 end 94 94 95 95 color = rb.lcd_rgbpack(ru, gu, bu)
+2 -2
apps/plugins/lua/include_lua/draw.lua
··· 268 268 if targetclr == _get(img, x, y, true) then -- north 269 269 qtail = qtail + 2 270 270 qpt[qtail - 1] = x 271 - qpt[qtail] = y 271 + qpt[qtail] = y 272 272 end 273 273 y = y + 2 274 274 if targetclr == _get(img, x, y, true) then -- south 275 275 qtail = qtail + 2 276 276 qpt[qtail - 1] = x 277 - qpt[qtail] = y 277 + qpt[qtail] = y 278 278 end 279 279 return fillclr 280 280 end
-10
apps/plugins/lua/include_lua/lcd.lua
··· 132 132 end 133 133 134 134 --expose functions to the outside through _lcd table 135 - --[[ 136 - _lcd.text_extent = text_extent 137 - _lcd.set_viewport = set_viewport 138 - _lcd.duplicate = duplicate 139 - _lcd.update = _update 140 - _lcd.update_rect = update_rect 141 - _lcd.clear = clear 142 - _lcd.splashf = splashf 143 - _lcd.image = image 144 - ]] 145 135 _lcd.update = rb.lcd_update 146 136 _lcd.DEPTH = rb.LCD_DEPTH 147 137 _lcd.W = rb.LCD_WIDTH
+1 -1
apps/plugins/lua/include_lua/print.lua
··· 152 152 -- if bByRef is _NIL or false then a copy is returned 153 153 local function get_settings(bByRef) 154 154 _p_opts = _p_opts or set_defaults() 155 - if not bByRef then 155 + if not bByRef then 156 156 -- shallow copy of table 157 157 local copy = {} 158 158 for k, v in pairs(_p_opts) do
+1 -1
apps/plugins/lua/rocklib_img.c
··· 1152 1152 { 1153 1153 rli_trans = custom_transform; 1154 1154 lua_settop(L, 11); /* ensure lua function on top of stack */ 1155 - clr = 0; 1155 + clr = FB_SCALARPACK(0); 1156 1156 op = 0; 1157 1157 } 1158 1158 else