diff --git a/main.c b/main.c index 4521820..00296a9 100644 --- a/main.c +++ b/main.c @@ -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());