X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame%2Fg_window.pas;h=081c3b2c36a992b1e203d25298004a1897089b3f;hb=cc934f758d8d3036fa3bca8a3cca949814e04d89;hp=a41c9f44b08ed50dae2524f5a3a1d9c554400233;hpb=a2e293a0411a842370664272697718994adbf3df;p=d2df-sdl.git diff --git a/src/game/g_window.pas b/src/game/g_window.pas index a41c9f4..081c3b2 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -35,7 +35,7 @@ var flag: Boolean; wTitle: PChar = nil; wNeedTimeReset: Boolean = False; - wWindowCreated: Boolean = False; + //wWindowCreated: Boolean = False; //wCursorShown: Boolean = False; wMinimized: Boolean = False; //wNeedFree: Boolean = True; @@ -376,7 +376,7 @@ begin if h_GL <> nil then SDL_GL_DeleteContext(h_GL); h_Wnd := nil; h_GL := nil; - wWindowCreated := False; + //wWindowCreated := False; end; function CreateGLWindow(Title: PChar): Boolean; @@ -400,8 +400,8 @@ begin h_Gl := SDL_GL_CreateContext(h_Wnd); if h_Gl = nil then Exit; - - wWindowCreated := True; + + //wWindowCreated := True; e_ResizeWindow(gScreenWidth, gScreenHeight); e_InitGL();