And fixed the documentation and marked Alpha 4.1.

This commit is contained in:
Pietro Gagliardi 2018-09-01 19:14:30 -04:00
parent db9977a4ee
commit 2606235a74
2 changed files with 5 additions and 2 deletions

View File

@ -30,6 +30,9 @@ But libui is not dead; I am working on it whenever I can, and I hope to get it t
*Note that today's entry (Eastern Time) may be updated later today.* *Note that today's entry (Eastern Time) may be updated later today.*
* **1 September 2018**
* **Alpha 4.1 is here.** This is an emergency fix to Alpha 4 to fix `uiImageAppend()` not working as documented. It now works properly, with one important difference you'll need to care about: **it now requires image data to be alpha-premultiplied**. In addition, it also manages memory slightly better now, and has minor documentation typo fixes.
* **10 August 2018** * **10 August 2018**
* **Alpha 4 is finally here.** Everything from Alpha 3.5 and what's listed below is in this release; the two biggest changes are still the new text drawing API and new uiTable control. In between all that is a whole bunch of bugfixes, and hopefully more stability too. Thanks to everybody who helped contribute! * **Alpha 4 is finally here.** Everything from Alpha 3.5 and what's listed below is in this release; the two biggest changes are still the new text drawing API and new uiTable control. In between all that is a whole bunch of bugfixes, and hopefully more stability too. Thanks to everybody who helped contribute!
* Alpha 4 should hopefully also include automated binary releases via CI. Thanks to those who helped set that up! * Alpha 4 should hopefully also include automated binary releases via CI. Thanks to those who helped set that up!

4
ui.h
View File

@ -1144,7 +1144,7 @@ _UI_EXTERN uiGrid *uiNewGrid(void);
// resolution; this matches the current expectations of some // resolution; this matches the current expectations of some
// desktop systems at the time of writing (mid-2018) // desktop systems at the time of writing (mid-2018)
// //
// uiImage is very simple: it only supports non-premultiplied 32-bit // uiImage is very simple: it only supports premultiplied 32-bit
// RGBA images, and libui does not provide any image file loading // RGBA images, and libui does not provide any image file loading
// or image format conversion utilities on top of that. // or image format conversion utilities on top of that.
typedef struct uiImage uiImage; typedef struct uiImage uiImage;
@ -1161,7 +1161,7 @@ _UI_EXTERN uiImage *uiNewImage(double width, double height);
_UI_EXTERN void uiFreeImage(uiImage *i); _UI_EXTERN void uiFreeImage(uiImage *i);
// uiImageAppend adds a representation to the uiImage. // uiImageAppend adds a representation to the uiImage.
// pixels should point to a byte array of non-premultiplied pixels // pixels should point to a byte array of premultiplied pixels
// stored in [R G B A] order (so ((uint8_t *) pixels)[0] is the R of the // stored in [R G B A] order (so ((uint8_t *) pixels)[0] is the R of the
// first pixel and [3] is the A of the first pixel). pixelWidth and // first pixel and [3] is the A of the first pixel). pixelWidth and
// pixelHeight is the size *in pixels* of the image, and pixelStride is // pixelHeight is the size *in pixels* of the image, and pixelStride is