Fixed version number format and calculations
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5987 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -130,8 +130,9 @@ STXTTranslator::STXTTranslator()
|
||||
{
|
||||
strcpy(fName, "StyledEdit Files");
|
||||
sprintf(fInfo, "StyledEdit file translator v%d.%d.%d %s",
|
||||
STXT_TRANSLATOR_VERSION / 100, (STXT_TRANSLATOR_VERSION / 10) % 10,
|
||||
STXT_TRANSLATOR_VERSION % 10, __DATE__);
|
||||
static_cast<int>(STXT_TRANSLATOR_VERSION >> 8),
|
||||
static_cast<int>((STXT_TRANSLATOR_VERSION >> 4) & 0xf),
|
||||
static_cast<int>(STXT_TRANSLATOR_VERSION & 0xf), __DATE__);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <ByteOrder.h>
|
||||
#include <fs_attr.h>
|
||||
|
||||
#define STXT_TRANSLATOR_VERSION 100
|
||||
#define STXT_TRANSLATOR_VERSION 0x100
|
||||
#define STXT_IN_QUALITY 0.5
|
||||
// high in quality becuase this code supports all STXT features
|
||||
#define STXT_IN_CAPABILITY 0.5
|
||||
|
||||
@@ -104,8 +104,9 @@ STXTView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
STXT_TRANSLATOR_VERSION / 100, (STXT_TRANSLATOR_VERSION / 10) % 10,
|
||||
STXT_TRANSLATOR_VERSION % 10, __DATE__);
|
||||
static_cast<int>(STXT_TRANSLATOR_VERSION >> 8),
|
||||
static_cast<int>((STXT_TRANSLATOR_VERSION >> 4) & 0xf),
|
||||
static_cast<int>(STXT_TRANSLATOR_VERSION & 0xf), __DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
/* char copyright[] = "© 2002 OpenBeOS Project";
|
||||
DrawString(copyright, BPoint(xbold, yplain * 2 + ybold));
|
||||
|
||||
@@ -132,8 +132,9 @@ TGATranslator::TGATranslator()
|
||||
|
||||
strcpy(fName, "TGA Images");
|
||||
sprintf(fInfo, "TGA image translator v%d.%d.%d %s",
|
||||
TGA_TRANSLATOR_VERSION / 100, (TGA_TRANSLATOR_VERSION / 10) % 10,
|
||||
TGA_TRANSLATOR_VERSION % 10, __DATE__);
|
||||
static_cast<int>(TGA_TRANSLATOR_VERSION >> 8),
|
||||
static_cast<int>((TGA_TRANSLATOR_VERSION >> 4) & 0xf),
|
||||
static_cast<int>(TGA_TRANSLATOR_VERSION & 0xf), __DATE__);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <ByteOrder.h>
|
||||
#include "TGATranslatorSettings.h"
|
||||
|
||||
#define TGA_TRANSLATOR_VERSION 100
|
||||
#define TGA_TRANSLATOR_VERSION 0x100
|
||||
#define TGA_IN_QUALITY 1.0
|
||||
// high in quality becuase this code supports all TGA features
|
||||
#define TGA_IN_CAPABILITY 0.6
|
||||
|
||||
@@ -191,8 +191,9 @@ TGAView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
TGA_TRANSLATOR_VERSION / 100, (TGA_TRANSLATOR_VERSION / 10) % 10,
|
||||
TGA_TRANSLATOR_VERSION % 10, __DATE__);
|
||||
static_cast<int>(TGA_TRANSLATOR_VERSION >> 8),
|
||||
static_cast<int>((TGA_TRANSLATOR_VERSION >> 4) & 0xf),
|
||||
static_cast<int>(TGA_TRANSLATOR_VERSION & 0xf), __DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
/* char copyright[] = "© 2002 OpenBeOS Project";
|
||||
DrawString(copyright, BPoint(xbold, yplain * 2 + ybold));
|
||||
|
||||
Reference in New Issue
Block a user