1
0
Fork 0

gcc warnings

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@600
This commit is contained in:
Peter Veenstra 2002-12-22 18:27:40 +00:00
parent 3b304c78f3
commit eb27ac8bba

View file

@ -4,7 +4,8 @@ static void Render_Normal_8_None(Bit8u * src,Bitu x,Bitu y,Bitu dx,Bitu dy) {
Bitu next_dest=render.op.pitch-dx;
Bitu rem=dx&3;dx>>=2;
for (;dy>0;dy--) {
for (Bitu tempx=dx;tempx>0;tempx--) {
Bitu tempx;
for (tempx=dx;tempx>0;tempx--) {
Bit32u temp=*(Bit32u *)src;src+=4;
*(Bit32u *)dest=temp;
dest+=4;
@ -35,7 +36,8 @@ static void Render_Normal_8_DoubleHeight(Bit8u * src,Bitu x,Bitu y,Bitu dx,Bitu
Bitu next_dest=(2*render.op.pitch)-dx;
Bitu rem=dx&3;dx>>=2;
for (;dy>0;dy--) {
for (Bitu tempx=dx;tempx>0;tempx--) {
Bitu tempx;
for (tempx=dx;tempx>0;tempx--) {
Bit32u temp=*(Bit32u *)src;src+=4;
*(Bit32u *)dest=temp;
*(Bit32u *)(dest+render.op.pitch)=temp;
@ -223,4 +225,4 @@ static void Render_Normal_CallBack(Bitu width,Bitu height,Bitu bpp,Bitu pitch,Bi
break;
}
RENDER_ResetPal();
}
}