Jump to content
Sign in to follow this  
mroszko

bug in gdisp_image_support.h

Recommended Posts

https://git.ugfx.io/uGFX/uGFX/src/master/src/gdisp/gdisp_image_support.h#L26

 

#define gdispImageSwapWords32(dw)                    ((((uint32_t)(w))>>16)|(((uint32_t)(w))<<16))
#define gdispImageSwapBytes32(dw)                    (((((uint32_t)(w))&0xFF000000)>>8)|((((uint32_t)(w))&0x00FF0000)<<8)\
                                                     |((((uint32_t)(w))&0x0000FF00)>>8)|(((uint32_t)(w))<<8))

 

dw macro variable but the expression just uses "w"

 

 

Interestingly enough there's another bug with endian detection now with gcc 6.2 as its detecting my 32-bit cortex m-7 as 64-bit.....and setting GFX_CPU_ENDIAN_BIG

Share this post


Link to post
Share on other sites

Oops. I will get that macro fixed today in the repo.

Any idea what is causing the change in endian and size detection? I would appreciate if you could help us find that one.

Share this post


Link to post
Share on other sites

Hehe. I shall finally maybe find out whats going on with the endian detection!

 

(Just got back to the project sorry).

 

Issue definitely still exists.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...