From 2d3ab1c7417f4ac105d5c4f932506bf17a24fe0e Mon Sep 17 00:00:00 2001 From: XiadaOku <69246170+XiadaOku@users.noreply.github.com> Date: Wed, 20 Jul 2022 02:36:49 +0300 Subject: [PATCH] init window with resolution size --- lib/xgraph/xgraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/xgraph/xgraph.cpp b/lib/xgraph/xgraph.cpp index 39008208..9da17c04 100644 --- a/lib/xgraph/xgraph.cpp +++ b/lib/xgraph/xgraph.cpp @@ -174,7 +174,7 @@ int XGR_Screen::init(int flags_in) ErrH.Abort(SDL_GetError(),XERR_USER, 0); } } else { - if (SDL_CreateWindowAndRenderer(this->hdWidth, this->hdHeight, SDL_WINDOW_RESIZABLE | SDL_WINDOW_MAXIMIZED, &sdlWindow, &sdlRenderer) < 0) { + if (SDL_CreateWindowAndRenderer(this->hdWidth, this->hdHeight, SDL_WINDOW_RESIZABLE, &sdlWindow, &sdlRenderer) < 0) { std::cout<<"ERROR2"<