summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3bac09c)
raw | patch | inline | side by side (parent: 3bac09c)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Wed, 6 Apr 2016 23:18:33 +0000 (02:18 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Wed, 6 Apr 2016 23:18:44 +0000 (02:18 +0300) |
src/engine/e_graphics.pas | patch | blob | history | |
src/game/g_window.pas | patch | blob | history | |
src/lib/sdl2/jedi.inc | patch | blob | history |
index b10ae2257b509e9e17ff6662dc6d45386ca36367..67cdb6567956152e75c79aefe4aed4acbfba3601 100644 (file)
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);
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 a41c9f44b08ed50dae2524f5a3a1d9c554400233..081c3b2c36a992b1e203d25298004a1897089b3f 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
flag: Boolean;
wTitle: PChar = nil;
wNeedTimeReset: Boolean = False;
- wWindowCreated: Boolean = False;
+ //wWindowCreated: Boolean = False;
//wCursorShown: Boolean = False;
wMinimized: Boolean = False;
//wNeedFree: Boolean = True;
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;
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 fcbb84a0214bd4503a0544294a2813465bb4e235..0f7cbac5008a845c2f4bac6794845e3d60d2e3ff 100644 (file)
--- a/src/lib/sdl2/jedi.inc
+++ b/src/lib/sdl2/jedi.inc
{$F+,Q-,R-,S-,I-,A+}
{$ENDIF}
{$ELSE}
- {$MODE DELPHI}
+ {.$MODE DELPHI} //k8: not here
{$ENDIF}
{$IFDEF LINUX}