https://bugs.winehq.org/show_bug.cgi?id=47490 Damjan Jovanovic <damjan.jov(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov(a)gmail.com --- Comment #3 from Damjan Jovanovic <damjan.jov(a)gmail.com> --- Created attachment 65492 --> https://bugs.winehq.org/attachment.cgi?id=65492 standalone test I copied your code and changing it to C, made it take a path to the image as its first command line parameter, and write the image to /tmp/test.bmp at the end. Not only does it work, but the input and output images are byte-for-byte identical. The problem must be earlier in your code, where you load/generate the image. Please attach that part of your code too. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.