UNIX Screenshot fix

This commit is contained in:
Mark Watkins 2011-06-07 15:47:17 +10:00
parent cedd0a9e5e
commit 51cf4252d4
3 changed files with 13 additions and 15 deletions

View File

@ -8295,7 +8295,7 @@
<sleeplib/machine.h>
<list>
1307421624 /home/mark/projects/git/sleepyhead/src/version.h
1307425559 /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"
1307418393 source:/home/mark/projects/git/sleepyhead/src/SleepyHeadMain.cpp
1307425549 source:/home/mark/projects/git/sleepyhead/src/SleepyHeadMain.cpp
"wx_pch.h"
"version.h"
<wx/app.h>

View File

@ -204,13 +204,11 @@ void SleepyHeadFrame::DoScreenshot( wxCommandEvent &event )
{
wxRect r=GetRect();
#if defined(__UNIX__) // Borrowed.. this need fixing.
/* int cx=r.x, cy=r.y;
ClientToScreen(&cx,&cy);
int border_width = cx - r.x;
int title_bar_height = cy - r.y;
r.width += (border_width * 2);
r.height += title_bar_height; // + border_width; */
#if defined(__UNIX__)
// Height of statusbar needs adding in
wxRect j=statusBar->GetRect();
r.height += j.height;
#endif
wxScreenDC sdc;

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 = 3354;
static const long REVISION = 1457;
static const long BUILD = 3355;
static const long REVISION = 1458;
//Miscellaneous Version Types
static const long BUILDS_COUNT = 547;
#define RC_FILEVERSION 0,7,3354,1457
#define RC_FILEVERSION_STRING "0, 7, 3354, 1457\0"
static const char FULLVERSION_STRING[] = "0.7.3354.1457";
static const long BUILDS_COUNT = 553;
#define RC_FILEVERSION 0,7,3355,1458
#define RC_FILEVERSION_STRING "0, 7, 3355, 1458\0"
static const char FULLVERSION_STRING[] = "0.7.3355.1458";
//These values are to keep track of your versioning state, don't modify them.
static const long BUILD_HISTORY = 0;