Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c index ca1f071..cf98fc3 100644 @@ -106,8 +106,8 @@ typedef fb_data pix_t; #define REFLECT_TOP (LCD_HEIGHT * 2 / 3) #define REFLECT_HEIGHT (LCD_HEIGHT - REFLECT_TOP) #define DISPLAY_HEIGHT REFLECT_TOP -#define DISPLAY_WIDTH (LCD_HEIGHT * LCD_PIXEL_ASPECT_HEIGHT / \ - LCD_PIXEL_ASPECT_WIDTH / 2) +#define DISPLAY_WIDTH MAX((LCD_HEIGHT * LCD_PIXEL_ASPECT_HEIGHT / \ + LCD_PIXEL_ASPECT_WIDTH / 2), (LCD_WIDTH * 2 / 5)) #define REFLECT_SC ((0x10000U * 3 + (REFLECT_HEIGHT * 5 - 1)) / \ (REFLECT_HEIGHT * 5)) #define DISPLAY_OFFS ((LCD_HEIGHT / 2) - REFLECT_HEIGHT) @@ -205,14 +205,14 @@ static char* show_album_name_conf[] = #define MAX_MARGIN 80 /* config values and their defaults */ -static int slide_spacing = (LCD_WIDTH - DISPLAY_WIDTH) / 8; -static int center_margin = (LCD_WIDTH - DISPLAY_WIDTH) / 16; +static int slide_spacing = DISPLAY_WIDTH / 4; +static int center_margin = (LCD_WIDTH - DISPLAY_WIDTH) / 12; static int num_slides = 4; static int zoom = 100; static bool show_fps = false; static bool resize = true; static int cache_version = 0; -static int show_album_name = album_name_top; +static int show_album_name = (LCD_HEIGHT > 100) ? album_name_top : album_name_bottom; static struct configdata config[] = { |