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.

puzzles: fix off-by-one in blitter clipping

Nobody to blame except myself for this one...

Change-Id: I8446b564c3c060411c46675e9baac1c72437c39a

+4 -4
+4 -4
apps/plugins/puzzles/rockbox.c
··· 1164 1164 int screenh = zoom_enabled ? zoom_h : LCD_HEIGHT; 1165 1165 1166 1166 /* Clip each coordinate at both extremes of the canvas */ 1167 - x0 = (x0 < 0 ? 0 : x0 > screenw - 1 ? screenw - 1: x0); 1168 - x1 = (x1 < 0 ? 0 : x1 > screenw - 1 ? screenw - 1: x1); 1169 - y0 = (y0 < 0 ? 0 : y0 > screenh - 1 ? screenh - 1: y0); 1170 - y1 = (y1 < 0 ? 0 : y1 > screenh - 1 ? screenh - 1: y1); 1167 + x0 = (x0 < 0 ? 0 : x0 > screenw ? screenw: x0); 1168 + x1 = (x1 < 0 ? 0 : x1 > screenw ? screenw: x1); 1169 + y0 = (y0 < 0 ? 0 : y0 > screenh ? screenh: y0); 1170 + y1 = (y1 < 0 ? 0 : y1 > screenh ? screenh: y1); 1171 1171 1172 1172 /* Transform back into x,y,w,h to return */ 1173 1173 *x = x0;