Prechádzať zdrojové kódy

stb_image: compile as C; stb_image_write: credits

Sean Barrett 7 rokov pred
rodič
commit
094cb31ec8
2 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 2 1
      stb_image.h
  2. 1 0
      stb_image_write.h

+ 2 - 1
stb_image.h

@@ -1236,10 +1236,11 @@ STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *u
 #ifndef STBI_NO_GIF
 #ifndef STBI_NO_GIF
 STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)
 STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)
 {
 {
+   unsigned char *result;
    stbi__context s; 
    stbi__context s; 
    stbi__start_mem(&s,buffer,len); 
    stbi__start_mem(&s,buffer,len); 
    
    
-   unsigned char *result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp);
+   result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp);
    if (stbi__vertically_flip_on_load) {
    if (stbi__vertically_flip_on_load) {
       stbi__vertical_flip_slices( result, *x, *y, *z, *comp ); 
       stbi__vertical_flip_slices( result, *x, *y, *z, *comp ); 
    }
    }

+ 1 - 0
stb_image_write.h

@@ -132,6 +132,7 @@ CREDITS:
       Thatcher Ulrich
       Thatcher Ulrich
       github:poppolopoppo
       github:poppolopoppo
       Patrick Boettcher
       Patrick Boettcher
+      github:xeekworx
       
       
 LICENSE
 LICENSE