@@ -252,6 +252,9 @@ struct tm;
252
252
typedef struct uiDateTimePicker uiDateTimePicker ;
253
253
#define uiDateTimePicker (this ) ((uiDateTimePicker *) (this))
254
254
// TODO document that tm_wday and tm_yday are undefined, and tm_isdst should be -1
255
+ // TODO document that for both sides
256
+ // TODO document time zone conversions or lack thereof
257
+ // TODO for Time: define what values are returned when a part is missing
255
258
_UI_EXTERN void uiDateTimePickerTime (uiDateTimePicker * d , struct tm * time );
256
259
_UI_EXTERN void uiDateTimePickerSetTime (uiDateTimePicker * d , const struct tm * time );
257
260
_UI_EXTERN void uiDateTimePickerOnChanged (uiDateTimePicker * d , void (* f )(uiDateTimePicker * , void * ), void * data );
@@ -560,12 +563,12 @@ _UI_EXTERN uiAttribute *uiNewSizeAttribute(double size);
560
563
_UI_EXTERN double uiAttributeSize (const uiAttribute * a );
561
564
562
565
// uiTextWeight represents possible text weights. These roughly
563
- // map to the OSx2 text weight field of TrueType and OpenType
566
+ // map to the OS/2 text weight field of TrueType and OpenType
564
567
// fonts, or to CSS weight numbers. The named constants are
565
568
// nominal values; the actual values may vary by font and by OS,
566
569
// though this isn't particularly likely. Any value between
567
- // uiTextWeightMinimum and uiDrawTextWeightMaximum ,
568
- // inclusive, is allowed.
570
+ // uiTextWeightMinimum and uiTextWeightMaximum, inclusive ,
571
+ // is allowed.
569
572
//
570
573
// Note that due to restrictions in early versions of Windows, some
571
574
// fonts have "special" weights be exposed in many programs as
@@ -1141,7 +1144,7 @@ _UI_EXTERN uiGrid *uiNewGrid(void);
1141
1144
// resolution; this matches the current expectations of some
1142
1145
// desktop systems at the time of writing (mid-2018)
1143
1146
//
1144
- // uiImage is very simple: it only supports non- premultiplied 32-bit
1147
+ // uiImage is very simple: it only supports premultiplied 32-bit
1145
1148
// RGBA images, and libui does not provide any image file loading
1146
1149
// or image format conversion utilities on top of that.
1147
1150
typedef struct uiImage uiImage ;
@@ -1158,7 +1161,7 @@ _UI_EXTERN uiImage *uiNewImage(double width, double height);
1158
1161
_UI_EXTERN void uiFreeImage (uiImage * i );
1159
1162
1160
1163
// uiImageAppend adds a representation to the uiImage.
1161
- // pixels should point to a byte array of non- premultiplied pixels
1164
+ // pixels should point to a byte array of premultiplied pixels
1162
1165
// stored in [R G B A] order (so ((uint8_t *) pixels)[0] is the R of the
1163
1166
// first pixel and [3] is the A of the first pixel). pixelWidth and
1164
1167
// pixelHeight is the size *in pixels* of the image, and pixelStride is
0 commit comments