comparison horori/searcher/src/searcher.cpp @ 5:519d6fd0bfd9 draft

searcher: bug fix. fcgo: new feature.
author pyon <pyon@macmini>
date Tue, 15 Jun 2021 18:32:28 +0900
parents aaaa401818a1
children
comparison
equal deleted inserted replaced
4:ff7a3c254956 5:519d6fd0bfd9
1 // Filename : searcher.cpp 1 // Filename : searcher.cpp
2 // Last Change: 2021-05-11 火 13:20:04. 2 // Last Change: 2021-06-15 火 16:11:11.
3 // 3 //
4 #include <wx/msgdlg.h> 4 #include <wx/msgdlg.h>
5 #include <wx/dir.h> 5 #include <wx/dir.h>
6 #include <wx/fileconf.h> 6 #include <wx/fileconf.h>
7 #include <wx/html/htmprint.h> 7 #include <wx/html/htmprint.h>
1434 int mver = 1; 1434 int mver = 1;
1435 int black = 0; 1435 int black = 0;
1436 int th = 38; 1436 int th = 38;
1437 unsigned char r, g, b; 1437 unsigned char r, g, b;
1438 1438
1439 for (int x = 2450, y = 1600; y = 1850; y++) { 1439 for (int x = 2450, y = 1600; y < 1850; y++) {
1440 r = imgfile.GetRed(x, y); 1440 r = imgfile.GetRed(x, y);
1441 g = imgfile.GetGreen(x, y); 1441 g = imgfile.GetGreen(x, y);
1442 b = imgfile.GetBlue(x, y); 1442 b = imgfile.GetBlue(x, y);
1443 if ((int)r < th && (int)g < th && (int)b < th) black++; 1443 if ((int)r < th && (int)g < th && (int)b < th) black++;
1444 } 1444 }
1489 } 1489 }
1490 } 1490 }
1491 1491
1492 void SearchFrame::SetVersionInfo() 1492 void SearchFrame::SetVersionInfo()
1493 { 1493 {
1494 this->SetTitle(wxT("Searcher - v1.1.0")); 1494 this->SetTitle(wxT("Searcher - v1.1.1"));
1495 m_textCtrlVersion->AppendText(wxT("1.1.1 : bug fix (2021-06-15)\n"));
1495 m_textCtrlVersion->AppendText(wxT("1.1.0 : adapt to new marksheet (2021-05-11)\n")); 1496 m_textCtrlVersion->AppendText(wxT("1.1.0 : adapt to new marksheet (2021-05-11)\n"));
1496 m_textCtrlVersion->AppendText(wxT("1.0.4 : small fix (2020-12-24)\n")); 1497 m_textCtrlVersion->AppendText(wxT("1.0.4 : small fix (2020-12-24)\n"));
1497 m_textCtrlVersion->AppendText(wxT("1.0.3 : new feature - paste search (2020-06-26)\n")); 1498 m_textCtrlVersion->AppendText(wxT("1.0.3 : new feature - paste search (2020-06-26)\n"));
1498 m_textCtrlVersion->AppendText(wxT("1.0.2 : new feature - dump index (2020-06-24)\n")); 1499 m_textCtrlVersion->AppendText(wxT("1.0.2 : new feature - dump index (2020-06-24)\n"));
1499 m_textCtrlVersion->AppendText(wxT("1.0.1 : bug fix (2020-06-22)\n")); 1500 m_textCtrlVersion->AppendText(wxT("1.0.1 : bug fix (2020-06-22)\n"));