From: Ketmar Dark Date: Wed, 6 Apr 2016 23:18:33 +0000 (+0300) Subject: fixed some warnings X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=c3883647dc5b9ad0b62d3163b2ad92e8b1b06d8a fixed some warnings --- diff --git a/src/engine/e_graphics.pas b/src/engine/e_graphics.pas index b10ae22..67cdb65 100644 --- a/src/engine/e_graphics.pas +++ b/src/engine/e_graphics.pas @@ -583,7 +583,7 @@ end; procedure e_DrawFill(ID: DWORD; X, Y: Integer; XCount, YCount: Word; Alpha: Integer; AlphaChannel: Boolean; Blending: Boolean); var - X2, Y2, dx, dy, w, h: Integer; + X2, Y2, dx, w, h: Integer; u, v: Single; begin glColor4ub(e_Colors.R, e_Colors.G, e_Colors.B, 255); @@ -1743,7 +1743,7 @@ end; procedure e_RestoreGLContext(); var - GLID: GLuint; + //GLID: GLuint; i: Integer; begin e_WriteLog('Restoring GL context:', MSG_NOTIFY); 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(); diff --git a/src/lib/sdl2/jedi.inc b/src/lib/sdl2/jedi.inc index fcbb84a..0f7cbac 100644 --- a/src/lib/sdl2/jedi.inc +++ b/src/lib/sdl2/jedi.inc @@ -52,7 +52,7 @@ {$F+,Q-,R-,S-,I-,A+} {$ENDIF} {$ELSE} - {$MODE DELPHI} + {.$MODE DELPHI} //k8: not here {$ENDIF} {$IFDEF LINUX}