freemyipod r361 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r360‎ | r361 | r362 >
Date:17:27, 20 December 2010
Author:theseven
Status:new
Tags:
Comment:
iLoader: New feature: Fully graphical scrollable lists
Modified paths:
  • /apps/iloader/main.c (modified) (history)

Diff [purge]

Index: apps/iloader/main.c
@@ -301,10 +301,14 @@
302302 uint32_t di = (config[pc + 1] >> 2);
303303 while (config[di])
304304 {
305 - rendertext(&lcdbuffer[config[di + 1] + width * config[di + 2]],
306 - config[di + (di == ci ? 5 : 3)],
307 - config[di + (di == ci ? 6 : 4)],
308 - &((uint8_t*)config)[config[di]], width);
 305+ if (config[di] < 0x10000)
 306+ rendertext(&lcdbuffer[config[di + 1] + width * config[di + 2]],
 307+ config[di + (di == ci ? 5 : 3)],
 308+ config[di + (di == ci ? 6 : 4)],
 309+ &((uint8_t*)config)[config[di]], width);
 310+ else if (di == ci)
 311+ renderbmp(&lcdbuffer[config[di + 1] + width * config[di + 2]],
 312+ (void*)(config[di]), width);
309313 di += 8;
310314 }
311315 displaylcd(0, width - 1, 0, height - 1, lcdbuffer, 0);