Mercurial > sdl-ios-xcode
diff src/video/ipod/SDL_ipodvideo.c @ 2735:204be4fc2726
Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 27 Aug 2008 15:10:03 +0000 |
parents | c121d94672cb |
children | 99210400e8b9 |
line wrap: on
line diff
--- a/src/video/ipod/SDL_ipodvideo.c Wed Aug 27 13:37:19 2008 +0000 +++ b/src/video/ipod/SDL_ipodvideo.c Wed Aug 27 15:10:03 2008 +0000 @@ -526,8 +526,7 @@ } if (dbgout) fprintf(dbgout, "\n"); - } - while (posted); + } while (posted); } // enough space for 160x128x2 @@ -570,8 +569,7 @@ do { if ((inl(lcd_base) & (unsigned int) 0x8000) == 0) break; - } - while (M_timer_check(start, 1000) == 0); + } while (M_timer_check(start, 1000) == 0); } } @@ -681,10 +679,10 @@ do { if ((inl(0x70008A0C) & 0x80000000) == 0) break; - } - while (C_timer_check(start, 1000) == 0); + } while (C_timer_check(start, 1000) == 0); } } + static void C_lcd_cmd_data(int cmd, int data) { @@ -780,10 +778,12 @@ ipod_scr[y * (lcd_width / 4) + x / 4] |= (((Uint8 *) (SDL_VideoSurface->pixels))[y * SDL_VideoSurface-> - pitch - + - x] & - 3) << (2 * (x % 4)); + pitch + + x] & 3) << (2 + * + (x + % + 4)); } } }