http://bugs.winehq.org/show_bug.cgi?id=13595
--- Comment #7 from cleber cleberdemattoscasali-hotpop@yahoo.com.br 2008-07-31 18:51:05 --- After a lot of research...
It goes like that:
1) My program loads the bitmap (big) and makes a big texture of it
2) It creates a smaller offscreen buffer
3) The big texture is pasted to the offscreen buffer, using determined horizontal and vertical offsets. So, this offscreen buffer will contain only a portion of our big texture image
4) The data from the offscreen buffer is used to generate a new smaller texture, that will be used as a sprite frame
5) Program changes the offsets, and goes to 3 again. It will not stop until all sprite frames are created.
The bug happens on step (3). The vertical offset is wrong. Wine's directx just pastes the image one line higher than windows' directx.