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
Reported in version: HG 2.0 Reported for operating system, platform: All, x86
Comments on the original bug report:
On 2008-07-31 10:08:14 +0000, David HENRY wrote:
The function SDL_MasksToPixelFormatEnum() in video/SDL_pixel.c does not handle 24 bpp surfaces. Therefore when loading 24 bit pictures with SDL_image, this function returns always 0...
On 2008-09-21 04:18:17 +0000, David HENRY wrote:
Created attachment 279
fix 24 bpp image handling in SDL_MasksToPixelFormatEnum()
I attached a little patch to add 24 bpp image handling in SDL_MasksToPixelFormatEnum(), but this raises a new issue: this function
doesn't handle endianess at all.
Is it normal? Or am I doing it wrong in my application when creating my
texture from an SDL surface?
On 2009-02-16 21:07:14 +0000, Sam Lantinga wrote:
Can you attach a sample image? You're right, endianness needs to be taken into account, but I can take care of that once I have a test case.
Thanks!
On 2009-02-16 22:27:18 +0000, David HENRY wrote:
Created attachment 297
24-bits JPEG test image
Here is one of my test images.
On 2009-06-10 03:53:06 +0000, Mike Gorchak wrote:
I commited a fix for this issue today. But one problem is still persist: RGB24 and BGR24 doesn't have masks, so it is impossible to determine by bpp in SDL_MasksToPixelFormatEnum() function which format to return: RGB24 or BGR24.
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.0
Reported for operating system, platform: All, x86
Comments on the original bug report:
On 2008-07-31 10:08:14 +0000, David HENRY wrote:
On 2008-09-21 04:18:17 +0000, David HENRY wrote:
On 2009-02-16 21:07:14 +0000, Sam Lantinga wrote:
On 2009-02-16 22:27:18 +0000, David HENRY wrote:
On 2009-06-10 03:53:06 +0000, Mike Gorchak wrote:
The text was updated successfully, but these errors were encountered: