From 80afacca589e2854a58053845c4a2fee1c793318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Tue, 5 Jun 2018 18:55:59 +0200 Subject: [PATCH] Some changes to the main --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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());