Fix to Candlestick Text Label Rendering

This commit is contained in:
Mark Watkins 2011-06-07 19:47:42 +10:00
parent 845ddfc5d4
commit 7e485171c9
3 changed files with 11 additions and 10 deletions

View File

@ -8295,7 +8295,7 @@
<sleeplib/machine.h>
<list>
1307438188 /home/mark/projects/git/sleepyhead/src/version.h
1307440007 /home/mark/projects/git/sleepyhead/src/version.h
1307418393 /home/mark/projects/git/sleepyhead/src/libs/sleeplib/prs1_loader.h
"machine.h"
@ -8312,7 +8312,7 @@
"preferences.h"
"tinyxml/tinyxml.h"
1307437773 source:/home/mark/projects/git/sleepyhead/src/SleepyHeadMain.cpp
1307438186 source:/home/mark/projects/git/sleepyhead/src/SleepyHeadMain.cpp
"wx_pch.h"
"version.h"
<wx/app.h>
@ -8332,7 +8332,7 @@
"sleeplib/profiles.h"
"sleeplib/machine_loader.h"
1307436574 source:/home/mark/projects/git/sleepyhead/src/graphs/graph.cpp
1307439942 source:/home/mark/projects/git/sleepyhead/src/graphs/graph.cpp
<wx/settings.h>
<wx/dcbuffer.h>
<wx/log.h>

View File

@ -1031,7 +1031,8 @@ void gCandleStick::Plot(wxDC & dc, gGraphWindow & w)
}
str+=wxString::Format(wxT("%0.2f"),data->point[0][i].x);
dc.GetTextExtent(str, &textX, &textY);
if (t2>textX+5) {
textX+=10;
if (t2>(textX)) {
int j=t1+((t2/2)-(textX/2));
if (m_direction==wxVERTICAL) {
dc.DrawRotatedText(str,start_px+barwidth+2+textY,j,270);

View File

@ -16,14 +16,14 @@ namespace AutoVersion{
//Standard Version Type
static const long MAJOR = 0;
static const long MINOR = 7;
static const long BUILD = 3410;
static const long REVISION = 1760;
static const long BUILD = 3413;
static const long REVISION = 1781;
//Miscellaneous Version Types
static const long BUILDS_COUNT = 696;
#define RC_FILEVERSION 0,7,3410,1760
#define RC_FILEVERSION_STRING "0, 7, 3410, 1760\0"
static const char FULLVERSION_STRING[] = "0.7.3410.1760";
static const long BUILDS_COUNT = 709;
#define RC_FILEVERSION 0,7,3413,1781
#define RC_FILEVERSION_STRING "0, 7, 3413, 1781\0"
static const char FULLVERSION_STRING[] = "0.7.3413.1781";
//These values are to keep track of your versioning state, don't modify them.
static const long BUILD_HISTORY = 0;