Mercurial > sdl-ios-xcode
comparison src/video/SDL_stretch.c @ 1849:b5a4ac87b98c
Fixed uninitialized variable warnings
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 17 May 2006 15:08:46 +0000 |
parents | e3242177fe4a |
children | c121d94672cb 3feb94233f90 |
comparison
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 ) { |