X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_graphics.pas;h=c9a16c2dfbfd776b7f4f5526f8f18c08514964d1;hb=b4fac8bc01cf16c033ea0e66c16eabe919c86f86;hp=63a9e5bc113c6569f0cda0a65bcf5bc5d63c9bd6;hpb=c3be56f2a3849cd22be39ce594498c7990e05606;p=d2df-editor.git diff --git a/src/engine/e_graphics.pas b/src/engine/e_graphics.pas index 63a9e5b..c9a16c2 100644 --- a/src/engine/e_graphics.pas +++ b/src/engine/e_graphics.pas @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . *) -{$MODE DELPHI} +{$INCLUDE ../shared/a_modes.inc} unit e_graphics; interface @@ -37,7 +37,7 @@ type X, Y: Double; end; - TRect = record + TRectE = record Left, Top, Right, Bottom: Integer; end; @@ -52,7 +52,7 @@ type PPoint = ^TPoint; PPoint2f = ^TPoint2f; - PRect = ^TRect; + PRect = ^TRectE; PRectWH = ^TRectWH; @@ -126,7 +126,7 @@ procedure e_EndRender(); function _RGB(Red, Green, Blue: Byte): TRGB; function _Point(X, Y: Integer): TPoint2i; function _Rect(X, Y: Integer; Width, Height: Word): TRectWH; -function _TRect(L, T, R, B: LongInt): TRect; +function _TRect(L, T, R, B: LongInt): TRectE; //function e_getTextGLId (ID: DWORD): GLuint; @@ -1522,7 +1522,7 @@ begin Result.Height := Height; end; -function _TRect(L, T, R, B: LongInt): TRect; +function _TRect(L, T, R, B: LongInt): TRectE; begin Result.Top := T; Result.Left := L;