You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the SDL_RWseek on src file is called before
[ARGB]mask for BI_BITFILEDS is read and wrong values end up in
[ARGB]mask variables.
On 2014-10-10 09:18:37 +0000, Rudolf Polzer wrote:
I was just tracking down the same problem.
The issue is that the RGBA masks are actually part of struct BITMAPV4HEADER, and thus follow directly the biClrUsed value, instead of being behind the bitmap header struct.
However, the commit is correct for palette images - for these, the color table indeed follows the whole header.
As a solution, I suggest skipping over the whole header size AFTER reading the masks (if used). This will fix support for BMP formats v4 (since Win95) and v5 (since Win98).
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1
Reported for operating system, platform: All, All
Comments on the original bug report:
On 2014-04-27 09:06:31 +0000, wrote:
On 2014-10-10 09:18:37 +0000, Rudolf Polzer wrote:
On 2014-10-11 07:01:35 +0000, Sam Lantinga wrote:
On 2014-10-13 08:47:47 +0000, Rudolf Polzer wrote:
On 2015-02-19 02:32:05 +0000, Ryan C. Gordon wrote:
The text was updated successfully, but these errors were encountered: