+
+/* loading screen */
+extern uint16_t loading_pixels[];
+
+void start_loadscr(void)
+{
+ swap_buffers(loading_pixels);
+}
+
+#define SPLAT_X 288
+#define SPLAT_Y 104
+
+#define FING_X 217
+#define FING_LAST_X 291
+#define FING_Y 151
+#define FING_W 7
+#define FING_H 8
+
+void end_loadscr(void)
+{
+ blitfb(loading_pixels + SPLAT_Y * 320 + SPLAT_X, loading_pixels + 320 * 240, 32, 72, 32);
+ blitfb_key(loading_pixels + FING_Y * 320 + FING_LAST_X, loading_pixels + 247 * 320 + 64,
+ FING_W, FING_H, FING_W, 0);
+ swap_buffers(loading_pixels);
+ sleep_msec(300);
+}
+
+void loadscr(int n, int count)
+{
+ int xoffs = 75 * n / (count - 1);
+ static int prev_xoffs;
+ uint16_t *sptr, *dptr;
+
+ sptr = loading_pixels + 247 * 320 + 64;
+ dptr = loading_pixels + FING_Y * 320 + FING_X + prev_xoffs;
+
+ while(prev_xoffs < xoffs) {
+ blitfb_key(dptr, sptr, FING_W, FING_H, FING_W, 0);
+ dptr++;
+ prev_xoffs++;
+ }
+
+ swap_buffers(loading_pixels);
+
+ /*sleep_msec(200);*/
+}