mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47:00 -04:00
make console panel compile correctly in vc7.1, wx2.6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1632 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -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 @@
|
|||||||
<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>
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user