1
0
Fork 0

Error in maketables procuced double lines.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@107
This commit is contained in:
Sjoerd van der Berg 2002-07-31 12:23:26 +00:00
parent 92105f3caf
commit 913513179e

View file

@ -67,13 +67,13 @@ static void MakeTables(void) {
Bitu i;Bit32u c,a;
c=0;a=(render.src.width<<16)/gfx_info.width;
for (i=0;i<gfx_info.width;i++) {
render.stretch_x[i]=c>> 16;
c=(c&0xffff)+a;
render.stretch_x[i]=c>> 16;
}
c=0;a=(render.src.height<<16)/gfx_info.height;
for (i=0;i<gfx_info.height;i++) {
render.stretch_y[i]=(c>> 16)*render.src.pitch;
c=(c&0xffff)+a;
render.stretch_y[i]=(c>>16)*render.src.pitch;
}
}