Permalink
Browse files

Remove 'inline' as it causes problems

  • Loading branch information...
Roger-random committed Feb 5, 2019
1 parent 30291fa commit ce41cb3b9153d2e76dba28fd2ec9dd21ea206e81
Showing with 2 additions and 2 deletions.
  1. +2 −2 spooky-eyes-bitmaps/makePNG.c
@@ -17,7 +17,7 @@ float *createMandelbrotImage(int width, int height, float xS, float yS, float ra

// This takes the float value 'val', converts it to red, green & blue values, then
// sets those values into the image memory buffer location pointed to by 'ptr'
inline void setRGB(png_byte *ptr, float val);
void setRGB(png_byte *ptr, float val);

// This function actually writes out the PNG image file. The string 'title' is
// also written into the image file
@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
return result;
}

inline void setRGB(png_byte *ptr, float val)
void setRGB(png_byte *ptr, float val)
{
int v = (int)(val * 767);
if (v < 0) v = 0;

0 comments on commit ce41cb3

Please sign in to comment.