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.

lcd-ssd1303: Fix big oops putting height where there should've been width.

Rid code of dar commasar and substitute huggy braces while we're at it. :P

Change-Id: If91974b93660bb0de32a0c92629eb83cea99d266

+13 -2
+13 -2
firmware/target/arm/as3525/lcd-ssd1303.c
··· 288 288 289 289 /* The Y coordinates have to work on even 8 pixel rows */ 290 290 if (x < 0) 291 - height += x, x = 0; 291 + { 292 + width += x; 293 + x = 0; 294 + } 295 + 292 296 if (x + width > LCD_WIDTH) 293 297 width = LCD_WIDTH - x; 298 + 294 299 if (width <= 0) 295 300 return; /* nothing left to do, 0 is harmful to lcd_write_data() */ 301 + 296 302 if (y < 0) 297 - height += y, y = 0; 303 + { 304 + height += y; 305 + y = 0; 306 + } 307 + 298 308 if (y + height > LCD_HEIGHT) 299 309 height = LCD_HEIGHT - y; 310 + 300 311 if (height <= 0) 301 312 return; /* nothing left to do */ 302 313