Closed 0x0203 closed 5 years ago
Okay, I think I've got this properly fixed now. As part of fixing this, I made some other changes that made things more consistent, clear, and correct.
getpixel()
and setpixel()
read and write the pixel data in the same way.struct rawfb_image
from those that deal with a struct rawfb_context
.set_style()
function were made so that they would work with the rawfb context once uncommented. Thanks for the feedback; should now all be addressed.
Closing as per authors request - see https://github.com/vurtun/nuklear/pull/847#discussion_r290946425 . There shall be another extended pull soon from the author.
This implements rendering of colored text for the x11_rawfb demo and an implementation of rendering multi-colored rectangles. The latter is used by the color picker widget which currently doesn't display properly.
Both of these changes make use of the
nk_image_blendpixel()
routine which I modified to swap ther
andb
bytes of the nk_color. I'm still not sure where these are getting swizzled in the first place, but this change makes it so everything renders in the requested color. If anyone has any insight into where the 'real' fix for this is, I can make the appropriate change.