diff options
author | William Wilgus <wilgus.william@gmail.com> | 2020-10-26 12:38:22 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-10-26 12:38:22 -0400 |
commit | 40e98a2e4915464b9306ab7b0f6feb173de095c5 (patch) | |
tree | 4e987640ae4ad201f029c4e26e51ebc61a4549b1 /bootloader | |
parent | 3237ae4a4ff9296a377ff9194a11038da161208f (diff) | |
download | rockbox-40e98a2e49.tar.gz rockbox-40e98a2e49.zip |
Whitespace cleanup on fb_viewport Rewrite
Change-Id: I24aac41c8abecf7b78a44d7f59e842b791be4563
Diffstat (limited to 'bootloader')
-rw-r--r-- | bootloader/common.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bootloader/common.c b/bootloader/common.c index 03c1bf9964..295ebdc51b 100644 --- a/bootloader/common.c +++ b/bootloader/common.c @@ -145,7 +145,7 @@ int load_raw_firmware(unsigned char* buf, char* firmware, int buffer_size) } len = filesize(fd); - + if (len > buffer_size) return EFILE_TOO_BIG; @@ -180,11 +180,11 @@ void display_logf(void) /* Doesn't return! */ int touch, prev_y=0; #endif char buffer[COLUMNS+1]; - + while(1) { index = logfindex + user_index; - + lcd_clear_display(); for(i = LINES-1; i>=0; i--) { @@ -195,19 +195,19 @@ void display_logf(void) /* Doesn't return! */ else break; /* done */ } - + memcpy(buffer, logfbuffer[index], COLUMNS); - + if (logfbuffer[index][MAX_LOGF_ENTRY] == LOGF_TERMINATE_CONTINUE_LINE) buffer[MAX_LOGF_ENTRY-1] = '>'; else if (logfbuffer[index][MAX_LOGF_ENTRY] == LOGF_TERMINATE_MULTI_LINE) buffer[MAX_LOGF_ENTRY-1] = '\0'; - + buffer[COLUMNS] = '\0'; - + lcd_puts(0, i, buffer); } - + button = button_get(false); if(button == SYS_USB_CONNECTED) usb_acknowledge(SYS_USB_CONNECTED_ACK); @@ -223,16 +223,16 @@ void display_logf(void) /* Doesn't return! */ else if(button & BUTTON_TOUCHSCREEN) { touch = button_get_data(); - + if(button & BUTTON_REL) prev_y = 0; - + if(prev_y != 0) user_index += (prev_y - (touch & 0xFFFF)) / SYSFONT_HEIGHT; prev_y = touch & 0xFFFF; } #endif - + lcd_update(); sleep(HZ/16); } |