mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=11917
This commit is contained in:
parent
ba0f30d4cf
commit
74b563c756
|
@ -913,3 +913,9 @@ Walt 19 Jan 2007
|
|||
|
||||
clientgui/
|
||||
BOINCBaseFrame.cpp
|
||||
2019 Jan 2007
|
||||
MGR: wxPieCtrl changes from Frank Wieler.
|
||||
|
||||
clientgui/
|
||||
common/
|
||||
wxPieCtrl.cpp
|
||||
|
|
|
@ -202,12 +202,11 @@ wxPieCtrl::wxPieCtrl(wxWindow * parent, wxWindowID id, wxPoint pos,
|
|||
|
||||
/* handles mouse motion events */
|
||||
void wxPieCtrl::OnMouseMove(wxMouseEvent& ev) {
|
||||
ev.Skip();
|
||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||
//get the pie part, over which the mouse pointer is
|
||||
int piepart = GetCoveredPiePart(ev.GetX(),ev.GetY());
|
||||
//part identified
|
||||
if(piepart >=0) {
|
||||
if(piepart >=0) {
|
||||
//prevent tooltip flicker
|
||||
if(piepart != m_lastCoveredPart) {
|
||||
wxString tooltip = this->m_Series[piepart].GetLabel();
|
||||
|
@ -220,6 +219,7 @@ void wxPieCtrl::OnMouseMove(wxMouseEvent& ev) {
|
|||
m_lastCoveredPart=-1;
|
||||
}
|
||||
#endif //__WXMAC__ || __WXMSW__
|
||||
ev.Skip();
|
||||
}
|
||||
|
||||
/* gets the pie part on coords using pixel colour */
|
||||
|
@ -414,7 +414,7 @@ void wxPieCtrl::Draw(wxPaintDC & pdc)
|
|||
//no angle
|
||||
cy = (int)(h/2 - (min(w,h)/2));
|
||||
circlew = min(w,h);
|
||||
circleh = w;
|
||||
circleh = circlew;
|
||||
}
|
||||
for(x = 0; x <= 2 * M_PI; x += 0.05)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue