Commit d5565ad5 authored by twanvl's avatar twanvl

make console panel compile correctly in vc7.1, wx2.6

parent da81a7c4
...@@ -99,7 +99,7 @@ class MessageCtrl : public wxScrolledWindow { ...@@ -99,7 +99,7 @@ class MessageCtrl : public wxScrolledWindow {
Refresh(false); Refresh(false);
} }
int find_point(int y) { size_t find_point(int y) {
// TODO: could do a binary search here // TODO: could do a binary search here
for (size_t i = 0 ; i < messages.size() ; ++i) { for (size_t i = 0 ; i < messages.size() ; ++i) {
if (y >= messages[i]->top && y < messages[i]->bottom()) return i; if (y >= messages[i]->top && y < messages[i]->bottom()) return i;
......
...@@ -576,6 +576,12 @@ ...@@ -576,6 +576,12 @@
<File <File
RelativePath=".\gui\set\cards_panel.hpp"> RelativePath=".\gui\set\cards_panel.hpp">
</File> </File>
<File
RelativePath=".\gui\set\console_panel.cpp">
</File>
<File
RelativePath=".\gui\set\console_panel.hpp">
</File>
<File <File
RelativePath=".\gui\set\keywords_panel.cpp"> RelativePath=".\gui\set\keywords_panel.cpp">
</File> </File>
......
...@@ -74,7 +74,7 @@ typedef wxOutputStream OutputStream; ...@@ -74,7 +74,7 @@ typedef wxOutputStream OutputStream;
typedef wxEvent wxMouseCaptureLostEvent; typedef wxEvent wxMouseCaptureLostEvent;
#define EVT_MOUSE_CAPTURE_LOST(handler) // ignore #define EVT_MOUSE_CAPTURE_LOST(handler) // ignore
#define wxEVT_MOUSE_CAPTURE_LOST 12345678 // not an actual event type #define wxEVT_MOUSE_CAPTURE_LOST 12345678 // not an actual event type
#define wxAutoBufferedPaintDCBase wxBufferedPaintDC #define wxAutoBufferedPaintDC wxBufferedPaintDC
#endif #endif
// ----------------------------------------------------------------------------- : Other aliasses // ----------------------------------------------------------------------------- : Other aliasses
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment