projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compile fix for sound without threads. Not sure
[wxWidgets.git]
/
contrib
/
src
/
ogl
/
canvas.cpp
diff --git
a/contrib/src/ogl/canvas.cpp
b/contrib/src/ogl/canvas.cpp
index ee49fdb4f5815dbbc9b103014faaca1c74fa3941..6c3bb4d561d90a3ad0986860bac63c81e957bd0b 100644
(file)
--- a/
contrib/src/ogl/canvas.cpp
+++ b/
contrib/src/ogl/canvas.cpp
@@
-24,7
+24,9
@@
#include <wx/wx.h>
#endif
#include <wx/wx.h>
#endif
+#if wxUSE_PROLOGIO
#include <wx/deprecated/wxexpr.h>
#include <wx/deprecated/wxexpr.h>
+#endif
#ifdef new
#undef new
#ifdef new
#undef new
@@
-34,13
+36,7
@@
#include <math.h>
#include <stdlib.h>
#include <math.h>
#include <stdlib.h>
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/canvas.h>
-#include <wx/ogl/ogldiag.h>
-#include <wx/ogl/misc.h>
-#include <wx/ogl/lines.h>
-#include <wx/ogl/composit.h>
+#include "wx/ogl/ogl.h"
#define CONTROL_POINT_SIZE 6
#define CONTROL_POINT_SIZE 6
@@
-86,7
+82,7
@@
wxShapeCanvas::~wxShapeCanvas()
{
}
{
}
-void wxShapeCanvas::OnPaint(wxPaintEvent&
event
)
+void wxShapeCanvas::OnPaint(wxPaintEvent&
WXUNUSED(event)
)
{
wxPaintDC dc(this);
{
wxPaintDC dc(this);
@@
-453,7
+449,6
@@
wxShape *wxShapeCanvas::FindShape(double x, double y, int *attachment, wxClassIn
// Check for division in case line straddles divisions (i.e. is not wholly contained).
if (!nearest_object || !(object->IsKindOf(CLASSINFO(wxDivisionShape)) || WhollyContains(object, nearest_object)))
{
// Check for division in case line straddles divisions (i.e. is not wholly contained).
if (!nearest_object || !(object->IsKindOf(CLASSINFO(wxDivisionShape)) || WhollyContains(object, nearest_object)))
{
- nearest = dist;
nearest_object = object;
nearest_attachment = temp_attachment;
current = NULL;
nearest_object = object;
nearest_attachment = temp_attachment;
current = NULL;
@@
-473,35
+468,35
@@
wxShape *wxShapeCanvas::FindShape(double x, double y, int *attachment, wxClassIn
*
*/
*
*/
-void wxShapeCanvas::OnLeftClick(double
x, double y, int keys
)
+void wxShapeCanvas::OnLeftClick(double
WXUNUSED(x), double WXUNUSED(y), int WXUNUSED(keys)
)
{
}
{
}
-void wxShapeCanvas::OnRightClick(double
x, double y, int keys
)
+void wxShapeCanvas::OnRightClick(double
WXUNUSED(x), double WXUNUSED(y), int WXUNUSED(keys)
)
{
}
{
}
-void wxShapeCanvas::OnDragLeft(bool
draw, double x, double y, int keys
)
+void wxShapeCanvas::OnDragLeft(bool
WXUNUSED(draw), double WXUNUSED(x), double WXUNUSED(y), int WXUNUSED(keys)
)
{
}
{
}
-void wxShapeCanvas::OnBeginDragLeft(double
x, double y, int keys
)
+void wxShapeCanvas::OnBeginDragLeft(double
WXUNUSED(x), double WXUNUSED(y), int WXUNUSED(keys)
)
{
}
{
}
-void wxShapeCanvas::OnEndDragLeft(double
x, double y, int keys
)
+void wxShapeCanvas::OnEndDragLeft(double
WXUNUSED(x), double WXUNUSED(y), int WXUNUSED(keys)
)
{
}
{
}
-void wxShapeCanvas::OnDragRight(bool
draw, double x, double y, int keys
)
+void wxShapeCanvas::OnDragRight(bool
WXUNUSED(draw), double WXUNUSED(x), double WXUNUSED(y), int WXUNUSED(keys)
)
{
}
{
}
-void wxShapeCanvas::OnBeginDragRight(double
x, double y, int keys
)
+void wxShapeCanvas::OnBeginDragRight(double
WXUNUSED(x), double WXUNUSED(y), int WXUNUSED(keys)
)
{
}
{
}
-void wxShapeCanvas::OnEndDragRight(double
x, double y, int keys
)
+void wxShapeCanvas::OnEndDragRight(double
WXUNUSED(x), double WXUNUSED(y), int WXUNUSED(keys)
)
{
}
{
}