comparison test/automated/surface/surface.c @ 3729:b7590cd5969d gsoc2009_unit_tests

Minor fix.
author Edgar Simo <bobbens@gmail.com>
date Sun, 12 Jul 2009 11:18:59 +0000
parents 97e9704fc267
children e451d5d288e9
comparison
equal deleted inserted replaced
3728:97e9704fc267 3729:b7590cd5969d
127 * X.X.X.X.. 127 * X.X.X.X..
128 * .X.X.X.X. 128 * .X.X.X.X.
129 * X.X.X.X.. */ 129 * X.X.X.X.. */
130 for (y=0; y<3; y++) { 130 for (y=0; y<3; y++) {
131 x = y % 2; 131 x = y % 2;
132 for (; x<80; x+=2) 132 for (; x<80; x+=2) {
133 ret = SDL_DrawPoint( testsur, x, y, 133 ret = SDL_DrawPoint( testsur, x, y,
134 SDL_MapRGB( testsur->format, x*y, x*y/2, x*y/3 ) ); 134 SDL_MapRGB( testsur->format, x*y, x*y/2, x*y/3 ) );
135 if (SDL_ATassert( "SDL_DrawPoint", ret == 0)) 135 if (SDL_ATassert( "SDL_DrawPoint", ret == 0))
136 return; 136 return;
137 }
137 } 138 }
138 139
139 /* Draw some lines. */ 140 /* Draw some lines. */
140 ret = SDL_DrawLine( testsur, 0, 30, 80, 30, 141 ret = SDL_DrawLine( testsur, 0, 30, 80, 30,
141 SDL_MapRGB( testsur->format, 0, 255, 0 ) ); 142 SDL_MapRGB( testsur->format, 0, 255, 0 ) );