Removed another bad assert and two no longer needed ones.
This commit is contained in:
parent
18bd3f693b
commit
62eedafb4a
|
@ -281,9 +281,6 @@ HRESULT WINAPI IDirectDrawSurface4Impl_Blt(
|
||||||
yinc = (srcheight << 16) / dstheight;
|
yinc = (srcheight << 16) / dstheight;
|
||||||
|
|
||||||
if (!dwFlags) {
|
if (!dwFlags) {
|
||||||
assert(ddesc.lPitch >= width);
|
|
||||||
assert(sdesc.lPitch >= width);
|
|
||||||
|
|
||||||
/* No effects, we can cheat here */
|
/* No effects, we can cheat here */
|
||||||
if (dstwidth == srcwidth) {
|
if (dstwidth == srcwidth) {
|
||||||
if (dstheight == srcheight) {
|
if (dstheight == srcheight) {
|
||||||
|
@ -309,8 +306,6 @@ HRESULT WINAPI IDirectDrawSurface4Impl_Blt(
|
||||||
for (y = sy = 0; y < dstheight; y++, sy += yinc) {
|
for (y = sy = 0; y < dstheight; y++, sy += yinc) {
|
||||||
sbuf = sbase + (sy >> 16) * sdesc.lPitch;
|
sbuf = sbase + (sy >> 16) * sdesc.lPitch;
|
||||||
|
|
||||||
assert((sy>>16) < srcheight);
|
|
||||||
|
|
||||||
if ((sy >> 16) == (last_sy >> 16)) {
|
if ((sy >> 16) == (last_sy >> 16)) {
|
||||||
/* this sourcerow is the same as last sourcerow -
|
/* this sourcerow is the same as last sourcerow -
|
||||||
* copy already stretched row
|
* copy already stretched row
|
||||||
|
|
Loading…
Reference in New Issue