Closed tbigot closed 4 years ago
Reproduced both on the latest version and the first version checked in. I tested with X color depth being 32 bpp. I don't think this should be the issue, but I'd like to test with 16bpp just to be sure, as the bicubic video driver is forcing 16bpp (but it's not the only one and the others are working fine).
I think the problem is that the first pixel that is read is just 2 bytes before the beginning of the video surface. This is because a one line offset is passed but not a one column offset when calling filter_bicubic: static_cast<Uint8>(pub->pixels) + (2src.x+src.y*pub->pitch) + (pub->pitch)
Fixed, but the filter suffers from bad performances. I opened #160 to track this.
Just compiled caprice32 from git.
Choosing bicubic in the parameters cause the app to systematically segfault, even at startup (setting saved). Here is the backtrace: