http://bugs.winehq.org/show_bug.cgi?id=24278
--- Comment #11 from Marc Weustink marc@freepascal.org 2010-09-13 18:25:44 CDT --- Created an attachment (id=30739) --> (http://bugs.winehq.org/attachment.cgi?id=30739) Sample source + exe showing problem with DIBsection
while then bitmap_dir example (attachment 30641) still shows an incompatibility with windows (wine 1.3.2), it is not the source of the reversed Lazarus images. In that example the source bitmap was based on CreateDIBitmap(), which is not the type used for bitmaps in Lazarus.
The bitmap_dir_2 example is based on CreateDIBSection(). This shows the lazarus problem. This example returns the wrong scanline for top to bottom bitmaps.
output on windows XP: test 1: 0x00000001 test 2: 0x00000001 test 3: 0x00000003 test 4: 0x00000003
output on wine 1.3.2: test 1: 0x00000001 test 2: 0x00000001 test 3: 0x00000001 test 4: 0x00000001