X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame%2Fg_gui.pas;h=78554a776ec932cc6f6a7f7647541a0848b80f11;hb=385f70688f69aba255d1cdb9b7f0717bfe1b6945;hp=893bdd8e2c0c2362a99b345ca9262e966b3b1d8f;hpb=cd1ca85acc0740e0f307782e2af54e5ba0a59507;p=d2df-sdl.git diff --git a/src/game/g_gui.pas b/src/game/g_gui.pas index 893bdd8..78554a7 100644 --- a/src/game/g_gui.pas +++ b/src/game/g_gui.pas @@ -1,4 +1,4 @@ -(* Copyright (C) DooM 2D:Forever Developers +(* Copyright (C) Doom 2D: Forever Developers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,7 +19,7 @@ unit g_gui; interface uses - mempool, + {$IFDEF USE_MEMPOOL}mempool,{$ENDIF} e_graphics, e_input, e_log, g_playermodel, g_basic, MAPDEF, utils; const @@ -85,7 +85,7 @@ type TFontType = (Texture, Character); - TFont = class(TPoolObject) + TFont = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF} private ID: DWORD; FScale: Single; @@ -109,7 +109,7 @@ type TOnChangeEvent = procedure(Sender: TGUIControl); TOnEnterEvent = procedure(Sender: TGUIControl); - TGUIControl = class(TPoolObject) + TGUIControl = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF} private FX, FY: Integer; FEnabled: Boolean; @@ -134,7 +134,7 @@ type property RightAlign: Boolean read FRightAlign write FRightAlign; // for menu end; - TGUIWindow = class(TPoolObject) + TGUIWindow = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF} private FActiveControl: TGUIControl; FDefControl: string; @@ -549,7 +549,12 @@ procedure g_GUI_LoadMenuPos(); implementation uses - GL, GLExt, g_textures, g_sound, SysUtils, +{$IFDEF USE_NANOGL} + nanoGL, +{$ELSE} + GL, GLExt, +{$ENDIF} + g_textures, g_sound, SysUtils, g_game, Math, StrUtils, g_player, g_options, g_map, g_weapons, xdynrec, wadreader;