Update of /cvsroot/wxlua/wxLua/samples
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv7944/samples
Modified Files:
editor.wx.lua
Log Message:
added check for OpenGL libraries
Index: editor.wx.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/samples/editor.wx.lua,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** editor.wx.lua 13 Dec 2006 06:57:50 -0000 1.40
--- editor.wx.lua 3 Jan 2007 23:10:02 -0000 1.41
***************
*** 1,2098 ****
! -------------------------------------------------------------------------=---
! -- Name: Editor.wx.lua
! -- Purpose: wxLua IDE
! -- Author: J Winwood
! -- Created: March 2002
! -- Copyright: (c) 2002-5 Lomtick Software. All rights reserved.
! -- Licence: wxWidgets licence
! -------------------------------------------------------------------------=---
!
! -- Equivalent to C's "cond ? a : b", all terms will be evaluated
[...4340 lines suppressed...]
! local hide = visible and folded
! if show then editor:ShowLines(1, editor.LineCount-1) end
! for ln = 1, editor.LineCount - 1 do
! local foldRaw = editor:GetFoldLevel(ln)
! local foldLvl = math.mod(foldRaw, 4096)
! local foldHdr = math.mod(math.floor(foldRaw / 8192), 2) == 1
! if show then
! if foldHdr then
! if not editor:GetFoldExpanded(ln) then editor:ToggleFold(ln) end
! end
! elseif hide and foldLvl == wx.wxSTC_FOLDLEVELBASE then if not foldHdr then editor:HideLines(ln, ln) end
! elseif foldHdr then
! if editor:GetFoldExpanded(ln) then editor:ToggleFold(ln) end
! end
! end
! editor:EnsureCaretVisible()
! end
!
!
|