summaryrefslogtreecommitdiff
path: root/apps/plugins/xrick/system
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/xrick/system')
-rw-r--r--apps/plugins/xrick/system/sysfile_rockbox.c8
-rw-r--r--apps/plugins/xrick/system/sysvid_rockbox.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/xrick/system/sysfile_rockbox.c b/apps/plugins/xrick/system/sysfile_rockbox.c
index 72227d5301..06227caec1 100644
--- a/apps/plugins/xrick/system/sysfile_rockbox.c
+++ b/apps/plugins/xrick/system/sysfile_rockbox.c
@@ -64,7 +64,7 @@ void sysfile_clearRootPath()
64 */ 64 */
65file_t sysfile_open(const char *name) 65file_t sysfile_open(const char *name)
66{ 66{
67 int fd; 67 long fd;
68 68
69 size_t fullPathLength = rb->strlen(rootPath) + rb->strlen(name) + 2; 69 size_t fullPathLength = rb->strlen(rootPath) + rb->strlen(name) + 2;
70 char *fullPath = sysmem_push(fullPathLength); 70 char *fullPath = sysmem_push(fullPathLength);
@@ -97,7 +97,7 @@ file_t sysfile_open(const char *name)
97 */ 97 */
98int sysfile_read(file_t file, void *buf, size_t size, size_t count) 98int sysfile_read(file_t file, void *buf, size_t size, size_t count)
99{ 99{
100 int fd = (int)file; 100 long fd = (long)file;
101 return (rb->read(fd, buf, size * count) / size); 101 return (rb->read(fd, buf, size * count) / size);
102} 102}
103 103
@@ -106,7 +106,7 @@ int sysfile_read(file_t file, void *buf, size_t size, size_t count)
106 */ 106 */
107int sysfile_seek(file_t file, long offset, int origin) 107int sysfile_seek(file_t file, long offset, int origin)
108{ 108{
109 int fd = (int)file; 109 long fd = (long)file;
110 return rb->lseek(fd, offset, origin); 110 return rb->lseek(fd, offset, origin);
111} 111}
112 112
@@ -115,7 +115,7 @@ int sysfile_seek(file_t file, long offset, int origin)
115 */ 115 */
116void sysfile_close(file_t file) 116void sysfile_close(file_t file)
117{ 117{
118 int fd = (int)file; 118 long fd = (long)file;
119 rb->close(fd); 119 rb->close(fd);
120} 120}
121 121
diff --git a/apps/plugins/xrick/system/sysvid_rockbox.c b/apps/plugins/xrick/system/sysvid_rockbox.c
index 236bc87616..fccf515575 100644
--- a/apps/plugins/xrick/system/sysvid_rockbox.c
+++ b/apps/plugins/xrick/system/sysvid_rockbox.c
@@ -55,7 +55,9 @@ enum { GREYBUFSIZE = (LCD_WIDTH*((LCD_HEIGHT+7)/8)*16+200) };
55# endif 55# endif
56#endif /* ndef HAVE_LCD_COLOR */ 56#endif /* ndef HAVE_LCD_COLOR */
57 57
58#ifdef HAVE_LCD_COLOR
58static fb_data *lcd_fb = NULL; 59static fb_data *lcd_fb = NULL;
60#endif
59 61
60#if (LCD_HEIGHT < SYSVID_HEIGHT) 62#if (LCD_HEIGHT < SYSVID_HEIGHT)
61enum { ROW_RESIZE_STEP = (LCD_HEIGHT << 16) / SYSVID_HEIGHT }; 63enum { ROW_RESIZE_STEP = (LCD_HEIGHT << 16) / SYSVID_HEIGHT };