Fixed version number format and calculations

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5984 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber 2004-01-08 03:35:54 +00:00
parent 2c9f63f0b8
commit ead4b1fa60
3 changed files with 8 additions and 13 deletions

View File

@ -124,8 +124,9 @@ BMPTranslator::BMPTranslator()
{
strcpy(fName, "BMP Images");
sprintf(fInfo, "BMP image translator v%d.%d.%d %s",
BMP_TRANSLATOR_VERSION / 100, (BMP_TRANSLATOR_VERSION / 10) % 10,
BMP_TRANSLATOR_VERSION % 10, __DATE__);
static_cast<int>(BMP_TRANSLATOR_VERSION >> 8),
static_cast<int>((BMP_TRANSLATOR_VERSION >> 4) & 0xf),
static_cast<int>(BMP_TRANSLATOR_VERSION & 0xf), __DATE__);
}
// ---------------------------------------------------------------

View File

@ -41,7 +41,7 @@
#define BMP_RLE8_COMPRESS 1
#define BMP_RLE4_COMPRESS 2
#define BMP_TRANSLATOR_VERSION 100
#define BMP_TRANSLATOR_VERSION 0x100
#define BMP_IN_QUALITY 1.0
// high in quality becuase this code supports all BMP features
#define BMP_IN_CAPABILITY 0.8

View File

@ -102,17 +102,11 @@ BMPView::Draw(BRect area)
char detail[100];
sprintf(detail, "Version %d.%d.%d %s",
BMP_TRANSLATOR_VERSION / 100, (BMP_TRANSLATOR_VERSION / 10) % 10,
BMP_TRANSLATOR_VERSION % 10, __DATE__);
static_cast<int>(BMP_TRANSLATOR_VERSION >> 8),
static_cast<int>((BMP_TRANSLATOR_VERSION >> 4) & 0xf),
static_cast<int>(BMP_TRANSLATOR_VERSION & 0xf), __DATE__);
DrawString(detail, BPoint(xbold, yplain + ybold));
/* char copyright[] = "© 2002 OpenBeOS Project";
DrawString(copyright, BPoint(xbold, yplain * 2 + ybold));
char becopyright[] = "Portions Copyright 1991-1999, Be Incorporated.";
DrawString(becopyright, BPoint(xbold, yplain * 4 + ybold));
char allrights[] = "All rights reserved.";
DrawString(allrights, BPoint(xbold, yplain * 5 + ybold));
*/
char writtenby[] = "Written by the OBOS Translation Kit Team";
DrawString(writtenby, BPoint(xbold, yplain * 7 + ybold));
}