Re: [AD] stretch_blit() ob1 error |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Here's what I have so far. It needs a *lot* more testing though.
The first hunk looks fine to me but the second hunk might be too broad: for
example, when shrinking to half the size, the odd horizontal lines will now
be taken into account instead of the even ones.
Would it not be better to guard the second hunk?
@@ -316,6 +317,9 @@
if ((dest_width <= 0) || (dest_height <= 0))
return;
}
+
+ if (syd < itofix(1))
+ sy += (syd >> 1);
/* search the cache */
stretcher_count++;
--
Eric Botcazou