diff --git a/Mandelbrot Fractal.cpp b/Mandelbrot Fractal.cpp index 20b4150..10ce9e6 100644 --- a/Mandelbrot Fractal.cpp +++ b/Mandelbrot Fractal.cpp @@ -50,7 +50,6 @@ SDL_Color getColor(int iterations, int maxIterations) { auto ifactor = static_cast(factor); if (ifactor >= maxColor) { // Handle the case where 'ifactor' is out of bounds. - // You can return a default color or take appropriate action. return { 0, 0, 0, 255 }; } @@ -132,7 +131,7 @@ int main() TTF_Font* font = TTF_OpenFont("C:/Windows/Fonts/arial.ttf", 24); if (!font) { - TTF_Font* font = TTF_OpenFont("/usr/share/fonts/truetype/freefont/FreeMono.ttf", 24); + std::cout << "Couldnīt load a font\n"; } SDL_Surface* surface = TTF_RenderText_Solid(font, text.c_str(), {255, 255, 255}); SDL_Texture* texture = SDL_CreateTextureFromSurface(renderer, surface); @@ -194,7 +193,7 @@ int main() } } } - SDL_RenderCopy(renderer, texture, nullptr, &destRect); + //SDL_RenderCopy(renderer, texture, nullptr, &destRect); SDL_RenderPresent(renderer); SDL_FreeSurface(surface); SDL_DestroyTexture(texture); diff --git a/Mandelbrot Fractal.rc b/Mandelbrot Fractal.rc new file mode 100644 index 0000000..c9e8767 Binary files /dev/null and b/Mandelbrot Fractal.rc differ diff --git a/Mandelbrot Fractal.vcxproj b/Mandelbrot Fractal.vcxproj index 3869b23..81376f8 100644 --- a/Mandelbrot Fractal.vcxproj +++ b/Mandelbrot Fractal.vcxproj @@ -134,6 +134,16 @@ + + + + + + + + + + diff --git a/Mandelbrot Fractal.vcxproj.filters b/Mandelbrot Fractal.vcxproj.filters index 91d3404..91b9db5 100644 --- a/Mandelbrot Fractal.vcxproj.filters +++ b/Mandelbrot Fractal.vcxproj.filters @@ -22,4 +22,22 @@ + + + Header Files + + + Header Files + + + + + Resource Files + + + + + Resource Files + + \ No newline at end of file diff --git a/icon1.ico b/icon1.ico new file mode 100644 index 0000000..4ba15b4 Binary files /dev/null and b/icon1.ico differ diff --git a/resource.h b/resource.h new file mode 100644 index 0000000..e6da68d --- /dev/null +++ b/resource.h @@ -0,0 +1,15 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Mandelbrot Fractal.rc +// + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 103 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/resource1.h b/resource1.h new file mode 100644 index 0000000..43db9a2 --- /dev/null +++ b/resource1.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Mandelbrot Fractal.rc +// +#define IDI_ICON1 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif