comparison src/video/ipod/SDL_ipodvideo.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents e27bdcc80744
children cf95a2fd3606
comparison
equal deleted inserted replaced
2697:c9121b04cffa 2698:e1da92da346c
680 if ((inl(0x70008A0C) & 0x80000000) == 0) 680 if ((inl(0x70008A0C) & 0x80000000) == 0)
681 break; 681 break;
682 } while (C_timer_check(start, 1000) == 0); 682 } while (C_timer_check(start, 1000) == 0);
683 } 683 }
684 } 684 }
685
685 static void 686 static void
686 C_lcd_cmd_data(int cmd, int data) 687 C_lcd_cmd_data(int cmd, int data)
687 { 688 {
688 C_lcd_wait_write(); 689 C_lcd_wait_write();
689 outl(cmd | 0x80000000, 0x70008A0C); 690 outl(cmd | 0x80000000, 0x70008A0C);
774 for (x = r->x; (x < r->x + r->w) && x < lcd_width; x++) { 775 for (x = r->x; (x < r->x + r->w) && x < lcd_width; x++) {
775 ipod_scr[y * (lcd_width / 4) + x / 4] &= 776 ipod_scr[y * (lcd_width / 4) + x / 4] &=
776 ~(3 << (2 * (x % 4))); 777 ~(3 << (2 * (x % 4)));
777 ipod_scr[y * (lcd_width / 4) + x / 4] |= 778 ipod_scr[y * (lcd_width / 4) + x / 4] |=
778 (((Uint8 *) (SDL_VideoSurface->pixels))[y * 779 (((Uint8 *) (SDL_VideoSurface->pixels))[y *
779 SDL_VideoSurface-> 780 SDL_VideoSurface->pitch
780 pitch
781 + 781 +
782 x] & 782 x] & 3) << (2
783 3) << (2 * (x % 4)); 783 *
784 (x
785 %
786 4));
784 } 787 }
785 } 788 }
786 } 789 }
787 790
788 M_update_display(0, 0, lcd_width, lcd_height); 791 M_update_display(0, 0, lcd_width, lcd_height);