aboutsummaryrefslogtreecommitdiffstats
path: root/unicode/src/lib/JEDI-SDL
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-07-23 19:59:32 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-07-23 19:59:32 +0000
commit75a949c7be43f17a6311926a20adf29df92c1c25 (patch)
tree111582d86c1fdeb44aebacb549b898f5e337f381 /unicode/src/lib/JEDI-SDL
parentda7cc4abba0f3a115f8adaf79fda120db4fa19d3 (diff)
downloadusdx-75a949c7be43f17a6311926a20adf29df92c1c25.tar.gz
usdx-75a949c7be43f17a6311926a20adf29df92c1c25.tar.xz
usdx-75a949c7be43f17a6311926a20adf29df92c1c25.zip
merge with trunk revision 1845
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1900 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'unicode/src/lib/JEDI-SDL')
-rw-r--r--unicode/src/lib/JEDI-SDL/OpenGL/Pas/glext.pas19
1 files changed, 10 insertions, 9 deletions
diff --git a/unicode/src/lib/JEDI-SDL/OpenGL/Pas/glext.pas b/unicode/src/lib/JEDI-SDL/OpenGL/Pas/glext.pas
index 1fc70f8a..871247a9 100644
--- a/unicode/src/lib/JEDI-SDL/OpenGL/Pas/glext.pas
+++ b/unicode/src/lib/JEDI-SDL/OpenGL/Pas/glext.pas
@@ -4282,32 +4282,33 @@ begin
if (Pos(' ', extension) <> 0) or (extension = '') then
begin
- Result := FALSE;
+ Result := false;
Exit;
end;
if searchIn = '' then
extensions := glGetString(GL_EXTENSIONS)
else
- //StrLCopy( extensions, searchIn, StrLen(searchIn)+1 );
+ //StrLCopy(extensions, searchIn, StrLen(searchIn) + 1);
extensions := searchIn;
start := extensions;
- while TRUE do
+ while true do
begin
- where := StrPos(start, extension );
- if where = nil then Break;
- terminator := Pointer(Integer(where) + Integer( strlen( extension ) ) );
- if (where = start) or (PChar(Integer(where) - 1)^ = ' ') then
+ where := StrPos(start, extension);
+ if where = nil then
+ Break;
+ terminator := where + Length(extension);
+ if (where = start) or ((where - 1)^ = ' ') then
begin
if (terminator^ = ' ') or (terminator^ = #0) then
begin
- Result := TRUE;
+ Result := true;
Exit;
end;
end;
start := terminator;
end;
- Result := FALSE;
+ Result := false;
end;