Fixed version format and calculations
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5986 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0e292355ba
commit
caff577d6a
@ -181,8 +181,9 @@ PNGTranslator::PNGTranslator()
|
||||
|
||||
strcpy(fName, "PNG Images");
|
||||
sprintf(fInfo, "PNG image translator v%d.%d.%d %s",
|
||||
PNG_TRANSLATOR_VERSION / 100, (PNG_TRANSLATOR_VERSION / 10) % 10,
|
||||
PNG_TRANSLATOR_VERSION % 10, __DATE__);
|
||||
static_cast<int>(PNG_TRANSLATOR_VERSION >> 8),
|
||||
static_cast<int>((PNG_TRANSLATOR_VERSION >> 4) & 0xf),
|
||||
static_cast<int>(PNG_TRANSLATOR_VERSION & 0xf), __DATE__);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
// IO Extension Names:
|
||||
|
||||
#define PNG_TRANSLATOR_VERSION 100
|
||||
#define PNG_TRANSLATOR_VERSION 0x100
|
||||
|
||||
#define PNG_IN_QUALITY 0.6
|
||||
#define PNG_IN_CAPABILITY 0.2
|
||||
|
@ -152,8 +152,9 @@ PNGView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
PNG_TRANSLATOR_VERSION / 100, (PNG_TRANSLATOR_VERSION / 10) % 10,
|
||||
PNG_TRANSLATOR_VERSION % 10, __DATE__);
|
||||
static_cast<int>(PNG_TRANSLATOR_VERSION >> 8),
|
||||
static_cast<int>((PNG_TRANSLATOR_VERSION >> 4) & 0xf),
|
||||
static_cast<int>(PNG_TRANSLATOR_VERSION & 0xf), __DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
|
||||
int32 lineno = 6;
|
||||
|
Loading…
Reference in New Issue
Block a user