skip junk in mp3_helix, refactor find_sync_word
[libpicofe.git] / pandora / plat.c
index 5992f73..e857bcc 100644 (file)
@@ -155,7 +155,7 @@ void plat_video_wait_vsync(void)
 \r
 void plat_status_msg_clear(void)\r
 {\r
-       vout_fbdev_clear_lines(layer_fb, g_screen_height - 8, 8);\r
+       vout_fbdev_clear_lines(layer_fb, g_osd_y, 8);\r
 }\r
 \r
 void plat_status_msg_busy_next(const char *msg)\r
@@ -339,7 +339,7 @@ int pnd_setup_layer(int enabled, int x, int y, int w, int h)
 \r
 void pnd_restore_layer_data(void)\r
 {\r
-       short *t = ((short *)fb_copy)[320*240 / 2 + 160];\r
+       short *t = (short *)fb_copy + 320*240 / 2 + 160;\r
 \r
        // right now this is used by menu, which wants to preview something\r
        // so try to get something on the layer.\r