summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pictureflow/pictureflow.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2020-06-26 07:04:33 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2020-06-26 07:08:32 -0400
commitd9e084b530b7610f5a09c531de703540a885ace7 (patch)
tree4136b62203430acb785d1c0c3cc4daa739f04102 /apps/plugins/pictureflow/pictureflow.c
parentaa4ec918e40cc4c964aa3477bccb9731cbe3e2f4 (diff)
downloadrockbox-d9e084b530b7610f5a09c531de703540a885ace7.tar.gz
rockbox-d9e084b530b7610f5a09c531de703540a885ace7.zip
Pictureflow Whitespace Cleanup
Change-Id: I7cda111a8d7a24cae31e3eeca1454480e27ebaaa
Diffstat (limited to 'apps/plugins/pictureflow/pictureflow.c')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 2a292fa594..7d94eeb31f 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -34,10 +34,6 @@
#include "lib/mylcd.h"
#include "lib/feature_wrappers.h"
-#ifndef ALIGN_DOWN
- #define ALIGN_DOWN(n, a) ((typeof(n))((uintptr_t)(n)/(a)*(a)))
-#endif
-
/******************************* Globals ***********************************/
/*
@@ -218,7 +214,6 @@ typedef fb_data pix_t;
#define PFREAL_ONE (1 << PFREAL_SHIFT)
#define PFREAL_HALF (PFREAL_ONE >> 1)
-
#define IANGLE_MAX 1024
#define IANGLE_MASK 1023
@@ -1134,7 +1129,9 @@ retry:
avail += out;
borrowed += out;
- struct track_data *new_tracks = (struct track_data *)(out + (uintptr_t)tracks);
+ struct track_data *new_tracks =
+ (struct track_data *)(out + (uintptr_t)tracks);
+
unsigned int bytes = track_count * sizeof(struct track_data);
if (track_count)
rb->memmove(new_tracks, tracks, bytes);
@@ -1304,7 +1301,7 @@ static void draw_progressbar(int step)
rb->yield();
}
-/* Calculate modified FNV hash of string
+/* Calculate modified FNV hash of string
* has good avalanche behaviour and uniform distribution
* see http://home.comcast.net/~bretm/hash/ */
static unsigned int mfnv(char *str)
@@ -1312,7 +1309,7 @@ static unsigned int mfnv(char *str)
const unsigned int p = 16777619;
unsigned int hash = 0x811C9DC5; // 2166136261;
- while(*str)
+ while(*str)
hash = (hash ^ *str++) * p;
hash += hash << 13;
hash ^= hash >> 7;
@@ -2523,7 +2520,7 @@ static int main_menu(void)
case PF_GOTO_WPS: /* WPS */
return -2;
#if PF_PLAYBACK_CAPABLE
- case PF_MENU_CLEAR_PLAYLIST:
+ case PF_MENU_CLEAR_PLAYLIST:
if(rb->playlist_remove_all_tracks(NULL) == 0) {
rb->playlist_create(NULL, NULL);
rb->splash(HZ*2, ID2P(LANG_PLAYLIST_CLEARED));
@@ -2831,7 +2828,7 @@ static void draw_album_text(void)
}
albumtxt_x = get_scroll_line_offset(PF_SCROLL_ALBUM);
- mylcd_putsxy(albumtxt_x, albumtxt_y, albumtxt);
+ mylcd_putsxy(albumtxt_x, albumtxt_y, albumtxt);
if ((show_album_name == ALBUM_AND_ARTIST_TOP)
|| (show_album_name == ALBUM_AND_ARTIST_BOTTOM)){
@@ -2871,7 +2868,7 @@ static int pictureflow_main(void)
}
}
- configfile_load(CONFIG_FILE, config, CONFIG_NUM_ITEMS, CONFIG_VERSION);
+ configfile_load(CONFIG_FILE, config, CONFIG_NUM_ITEMS, CONFIG_VERSION);
if(auto_wps == 0)
draw_splashscreen();
if(backlight_mode == 0) {