Some changes to the main
This commit is contained in:
parent
7c71af8aa1
commit
80afacca58
1 changed files with 4 additions and 1 deletions
5
main.c
5
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());
|
||||
|
|
Loading…
Reference in a new issue