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:
@@ -124,8 +124,9 @@ BMPTranslator::BMPTranslator()
|
|||||||
{
|
{
|
||||||
strcpy(fName, "BMP Images");
|
strcpy(fName, "BMP Images");
|
||||||
sprintf(fInfo, "BMP image translator v%d.%d.%d %s",
|
sprintf(fInfo, "BMP image translator v%d.%d.%d %s",
|
||||||
BMP_TRANSLATOR_VERSION / 100, (BMP_TRANSLATOR_VERSION / 10) % 10,
|
static_cast<int>(BMP_TRANSLATOR_VERSION >> 8),
|
||||||
BMP_TRANSLATOR_VERSION % 10, __DATE__);
|
static_cast<int>((BMP_TRANSLATOR_VERSION >> 4) & 0xf),
|
||||||
|
static_cast<int>(BMP_TRANSLATOR_VERSION & 0xf), __DATE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
#define BMP_RLE8_COMPRESS 1
|
#define BMP_RLE8_COMPRESS 1
|
||||||
#define BMP_RLE4_COMPRESS 2
|
#define BMP_RLE4_COMPRESS 2
|
||||||
|
|
||||||
#define BMP_TRANSLATOR_VERSION 100
|
#define BMP_TRANSLATOR_VERSION 0x100
|
||||||
#define BMP_IN_QUALITY 1.0
|
#define BMP_IN_QUALITY 1.0
|
||||||
// high in quality becuase this code supports all BMP features
|
// high in quality becuase this code supports all BMP features
|
||||||
#define BMP_IN_CAPABILITY 0.8
|
#define BMP_IN_CAPABILITY 0.8
|
||||||
|
|||||||
@@ -102,17 +102,11 @@ BMPView::Draw(BRect area)
|
|||||||
|
|
||||||
char detail[100];
|
char detail[100];
|
||||||
sprintf(detail, "Version %d.%d.%d %s",
|
sprintf(detail, "Version %d.%d.%d %s",
|
||||||
BMP_TRANSLATOR_VERSION / 100, (BMP_TRANSLATOR_VERSION / 10) % 10,
|
static_cast<int>(BMP_TRANSLATOR_VERSION >> 8),
|
||||||
BMP_TRANSLATOR_VERSION % 10, __DATE__);
|
static_cast<int>((BMP_TRANSLATOR_VERSION >> 4) & 0xf),
|
||||||
|
static_cast<int>(BMP_TRANSLATOR_VERSION & 0xf), __DATE__);
|
||||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
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";
|
char writtenby[] = "Written by the OBOS Translation Kit Team";
|
||||||
DrawString(writtenby, BPoint(xbold, yplain * 7 + ybold));
|
DrawString(writtenby, BPoint(xbold, yplain * 7 + ybold));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user