Explorar o código

Merge branch 'master' of https://github.com/pboettch/stb into working

Sean Barrett %!s(int64=8) %!d(string=hai) anos
pai
achega
51a5368dee
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      stb_image_write.h

+ 1 - 3
stb_image_write.h

@@ -294,9 +294,7 @@ static void stbiw__write_pixel(stbi__write_context *s, int rgb_dir, int comp, in
       s->func(s->context, &d[comp - 1], 1);
 
    switch (comp) {
-      case 1:
-         s->func(s->context,d,1);
-         break;
+      case 1: /* fall-through wanted */
       case 2:
          if (expand_mono)
             stbiw__write3(s, d[0], d[0], d[0]); // monochrome bmp