defs.h had been altered so only 3 MSW compilers were allowed for WXDLLEXPORT :-)
false removed from dbtable.cpp. WS_CLIPCHILDREN/SIBLINGS added to glcanvas.cpp. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,6 +1,27 @@
|
|||||||
wxWindows 2 Change Log
|
wxWindows 2 Change Log
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
2.1.16
|
||||||
|
------
|
||||||
|
|
||||||
|
wxBase:
|
||||||
|
|
||||||
|
All (GUI):
|
||||||
|
|
||||||
|
wxMSW:
|
||||||
|
|
||||||
|
- Various bug fixes
|
||||||
|
- Added wxCHMHelpController, for invoking MS HTML Help
|
||||||
|
files. This works under VC++ only
|
||||||
|
|
||||||
|
wxGTK:
|
||||||
|
|
||||||
|
- Various bug fixes
|
||||||
|
|
||||||
|
wxMotif:
|
||||||
|
|
||||||
|
- Various bug fixes
|
||||||
|
|
||||||
2.1.15
|
2.1.15
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@@ -456,7 +456,8 @@ Here are the steps required:
|
|||||||
- Edit wx/src/makeg95.env and set the MINGW32 variable at the top of
|
- Edit wx/src/makeg95.env and set the MINGW32 variable at the top of
|
||||||
the file to either 1 (you have Mingw32) or 0 (you have Cygwin32).
|
the file to either 1 (you have Mingw32) or 0 (you have Cygwin32).
|
||||||
If using MINGW32, also set the MINGW32VERSION variable
|
If using MINGW32, also set the MINGW32VERSION variable
|
||||||
appropriately.
|
appropriately. Note: Cygwin 1.1.0 and above may
|
||||||
|
need MINGW32 set to 1 to compile properly.
|
||||||
|
|
||||||
- Set your WXWIN variable to where wxWindows is installed.
|
- Set your WXWIN variable to where wxWindows is installed.
|
||||||
*** IMPORTANT: For Cygwin/Mingw32, use forward slashes in the path, not
|
*** IMPORTANT: For Cygwin/Mingw32, use forward slashes in the path, not
|
||||||
|
@@ -399,6 +399,10 @@ typedef int wxWindowID;
|
|||||||
# define WXDLLEXPORT_DATA(type) type
|
# define WXDLLEXPORT_DATA(type) type
|
||||||
# define WXDLLEXPORT_CTORFN
|
# define WXDLLEXPORT_CTORFN
|
||||||
# endif
|
# endif
|
||||||
|
#else
|
||||||
|
# define WXDLLEXPORT
|
||||||
|
# define WXDLLEXPORT_DATA(type) type
|
||||||
|
# define WXDLLEXPORT_CTORFN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
|
@@ -702,7 +702,7 @@ bool wxDbTable::Open(void)
|
|||||||
return(pDb->DispAllErrors(henv, hdbc, hstmtInsert));
|
return(pDb->DispAllErrors(henv, hdbc, hstmtInsert));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
insertable= false;
|
insertable= FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Completed successfully
|
// Completed successfully
|
||||||
|
@@ -179,7 +179,7 @@ wxGLCanvas::wxGLCanvas( wxWindow *parent,
|
|||||||
m_glContext = new wxGLContext(TRUE, this, palette, shared );
|
m_glContext = new wxGLContext(TRUE, this, palette, shared );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not very usefull for wxMSW, but this is to be wxGTK compliant
|
// Not very useful for wxMSW, but this is to be wxGTK compliant
|
||||||
|
|
||||||
wxGLCanvas::wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared, wxWindowID id,
|
wxGLCanvas::wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared, wxWindowID id,
|
||||||
const wxPoint& pos, const wxSize& size, long style, const wxString& name,
|
const wxPoint& pos, const wxSize& size, long style, const wxString& name,
|
||||||
@@ -218,6 +218,17 @@ wxGLCanvas::~wxGLCanvas()
|
|||||||
bool wxGLCanvas::Create(wxWindow *parent, wxWindowID id,
|
bool wxGLCanvas::Create(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos, const wxSize& size, long style, const wxString& name)
|
const wxPoint& pos, const wxSize& size, long style, const wxString& name)
|
||||||
{
|
{
|
||||||
|
/* Suggestion from Kelly Brock <kbrock@8cs.com> (not yet implemented):
|
||||||
|
|
||||||
|
OpenGL corruption fix is simple assuming it doesn't screw anything else
|
||||||
|
up. Add the following line to the top of the create function:
|
||||||
|
wxSize parentSize = GetClientSize();
|
||||||
|
All locations within the function that use 'size' are changed to
|
||||||
|
'parentSize'.
|
||||||
|
The above corrects the initial display corruption with the GeForce and
|
||||||
|
TNT2, not sure about other NVidia cards yet.
|
||||||
|
*/
|
||||||
|
|
||||||
static bool registeredGLCanvasClass = FALSE;
|
static bool registeredGLCanvasClass = FALSE;
|
||||||
|
|
||||||
// We have to register a special window class because we need
|
// We have to register a special window class because we need
|
||||||
@@ -282,8 +293,16 @@ bool wxGLCanvas::Create(wxWindow *parent, wxWindowID id,
|
|||||||
if ( style & wxTHICK_FRAME )
|
if ( style & wxTHICK_FRAME )
|
||||||
msflags |= WS_THICKFRAME;
|
msflags |= WS_THICKFRAME;
|
||||||
|
|
||||||
msflags |= WS_CHILD | WS_VISIBLE;
|
/*
|
||||||
if ( style & wxCLIP_CHILDREN )
|
A general rule with OpenGL and Win32 is that any window that will have a
|
||||||
|
HGLRC built for it must have two flags: WS_CLIPCHILDREN & WS_CLIPSIBLINGS.
|
||||||
|
You can find references about this within the knowledge base and most OpenGL
|
||||||
|
books that contain the wgl function descriptions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
msflags |= WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS;
|
||||||
|
// if ( style & wxCLIP_CHILDREN )
|
||||||
|
// msflags |= WS_CLIPCHILDREN;
|
||||||
msflags |= WS_CLIPCHILDREN;
|
msflags |= WS_CLIPCHILDREN;
|
||||||
|
|
||||||
bool want3D;
|
bool want3D;
|
||||||
|
Reference in New Issue
Block a user