Some changes to the main

This commit is contained in:
José Carlos Cuevas 2018-06-05 18:55:59 +02:00
parent 7c71af8aa1
commit 80afacca58

5
main.c
View file

@ -43,9 +43,12 @@ int main(int argn, char **argv) {
SDL_Window *window = SDL_CreateWindow("CLFract",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
res_x, res_y, 0);
0, 0,
SDL_WINDOW_FULLSCREEN_DESKTOP);
SDL_Renderer *renderer = SDL_CreateRenderer(window, -1, 0);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear"); // make the scaled rendering look smoother.
SDL_RenderSetLogicalSize(renderer, res_x, res_y);
if ((!window) || (!renderer))
fprintf(stderr,"Could not set video mode: %s\n",SDL_GetError());