diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-06-28 12:47:37 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-06-28 12:47:37 +0000 |
commit | fb2239eb2564cf295360642afc353589dcc6396f (patch) | |
tree | ad678e03fae4f59aa2bfb55d1394b4055eeda67f /src/lib | |
parent | 1a4fc713cf930616ddffe90cbe17aff972f51550 (diff) | |
download | usdx-fb2239eb2564cf295360642afc353589dcc6396f.tar.gz usdx-fb2239eb2564cf295360642afc353589dcc6396f.tar.xz usdx-fb2239eb2564cf295360642afc353589dcc6396f.zip |
cosmetics.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1836 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/JEDI-SDL/OpenGL/Pas/glext.pas | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lib/JEDI-SDL/OpenGL/Pas/glext.pas b/src/lib/JEDI-SDL/OpenGL/Pas/glext.pas index 1fc70f8a..871247a9 100644 --- a/src/lib/JEDI-SDL/OpenGL/Pas/glext.pas +++ b/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; |