src/video/SDL_stretch.c
changeset 1849 b5a4ac87b98c
parent 1442 e3242177fe4a
child 1895 c121d94672cb
child 4108 3feb94233f90
equal deleted inserted replaced
1848:3c5eed71a332 1849:b5a4ac87b98c
   147 /* The ASM code doesn't handle 24-bpp stretch blits */
   147 /* The ASM code doesn't handle 24-bpp stretch blits */
   148 void copy_row3(Uint8 *src, int src_w, Uint8 *dst, int dst_w)
   148 void copy_row3(Uint8 *src, int src_w, Uint8 *dst, int dst_w)
   149 {
   149 {
   150 	int i;
   150 	int i;
   151 	int pos, inc;
   151 	int pos, inc;
   152 	Uint8 pixel[3];
   152 	Uint8 pixel[3] = { 0, 0, 0 };
   153 
   153 
   154 	pos = 0x10000;
   154 	pos = 0x10000;
   155 	inc = (src_w << 16) / dst_w;
   155 	inc = (src_w << 16) / dst_w;
   156 	for ( i=dst_w; i>0; --i ) {
   156 	for ( i=dst_w; i>0; --i ) {
   157 		while ( pos >= 0x10000L ) {
   157 		while ( pos >= 0x10000L ) {