We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In UG_DrawBMP(), invalid color conversion done when BMP format is 565.
just before this line the color is set to 888 format, but that causes wrong colors to be displayed on a 565 format screen https://github.com/achimdoebler/UGUI/blob/master/ugui.c#L5840
a possible fix:
tmp = *p++; #ifdef USE_COLOR_RGB565 UG_DrawPixel( xp++ , yp , tmp ); #else /* Convert RGB565 to RGB888 */ r = (tmp>>11)&0x1F; r<<=3; g = (tmp>>5)&0x3F; g<<=2; b = (tmp)&0x1F; b<<=3; c = ((UG_COLOR)r<<16) | ((UG_COLOR)g<<8) | (UG_COLOR)b; UG_DrawPixel( xp++ , yp , c ); #endif
The text was updated successfully, but these errors were encountered:
@achimdoebler:
BTW: No, the project is still alive! [06.08.2017]
Good news, thanks! So please commit this fix or explain in short why it doesn't fit.
Sorry, something went wrong.
I had tested this fix, and the results are success
No branches or pull requests
In UG_DrawBMP(),
invalid color conversion done when BMP format is 565.
just before this line the color is set to 888 format, but that causes wrong colors to be displayed on a 565 format screen
https://github.com/achimdoebler/UGUI/blob/master/ugui.c#L5840
a possible fix:
The text was updated successfully, but these errors were encountered: