src/video/ipod/SDL_ipodvideo.c
branchgsoc2008_nds
changeset 2699 cf95a2fd3606
parent 2698 e1da92da346c
equal deleted inserted replaced
2698:e1da92da346c 2699:cf95a2fd3606
   775                 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++) {
   776                     ipod_scr[y * (lcd_width / 4) + x / 4] &=
   776                     ipod_scr[y * (lcd_width / 4) + x / 4] &=
   777                         ~(3 << (2 * (x % 4)));
   777                         ~(3 << (2 * (x % 4)));
   778                     ipod_scr[y * (lcd_width / 4) + x / 4] |=
   778                     ipod_scr[y * (lcd_width / 4) + x / 4] |=
   779                         (((Uint8 *) (SDL_VideoSurface->pixels))[y *
   779                         (((Uint8 *) (SDL_VideoSurface->pixels))[y *
   780                                                                 SDL_VideoSurface->pitch
   780                                                                 SDL_VideoSurface->
   781                                                                 +
   781                                                                 pitch +
   782                                                                 x] & 3) << (2
   782                                                                 x] & 3) << (2
   783                                                                             *
   783                                                                             *
   784                                                                             (x
   784                                                                             (x
   785                                                                              %
   785                                                                              %
   786                                                                              4));
   786                                                                              4));