瀏覽代碼

stb_image: Update documentation for de-iPhone flag

It's default off, not default on.

Fixes issue #651.
Fabian Giesen 4 年之前
父節點
當前提交
6ca560c9af
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      stb_image.h

+ 4 - 5
stb_image.h

@@ -310,11 +310,10 @@ RECENT REVISION HISTORY:
 //
 //
 // iPhone PNG support:
 // iPhone PNG support:
 //
 //
-// By default we convert iphone-formatted PNGs back to RGB, even though
-// they are internally encoded differently. You can disable this conversion
-// by calling stbi_convert_iphone_png_to_rgb(0), in which case
-// you will always just get the native iphone "format" through (which
-// is BGR stored in RGB).
+// We optionally support converting iPhone-formatted PNGs (which store
+// premultiplied BGRA) back to RGB, even though they're internally encoded
+// differently. To enable this conversion, call
+// stbi_convert_iphone_png_to_rgb(1).
 //
 //
 // Call stbi_set_unpremultiply_on_load(1) as well to force a divide per
 // Call stbi_set_unpremultiply_on_load(1) as well to force a divide per
 // pixel to remove any premultiplied alpha *only* if the image file explicitly
 // pixel to remove any premultiplied alpha *only* if the image file explicitly