mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Remove magic numbers
This commit is contained in:
+5
-3
@@ -187,9 +187,11 @@ UINT32 guiEmailWarning;
|
|||||||
#define SUBJECT_LINE_Y VIEWER_Y+42
|
#define SUBJECT_LINE_Y VIEWER_Y+42
|
||||||
#define SUBJECT_LINE_WIDTH 278-47
|
#define SUBJECT_LINE_WIDTH 278-47
|
||||||
|
|
||||||
|
//max number of lines can be shown in an opened email messagebox
|
||||||
|
#define MAX_EMAIL_LINES 20
|
||||||
// maximum size of a email message page, so not to overrun the bottom of the screen
|
// maximum size of a email message page, so not to overrun the bottom of the screen
|
||||||
#define MAX_EMAIL_MESSAGE_PAGE_SIZE ( GetFontHeight( MESSAGE_FONT ) + MESSAGE_GAP ) * 20
|
#define MAX_EMAIL_MESSAGE_PAGE_SIZE ( GetFontHeight( MESSAGE_FONT ) + MESSAGE_GAP ) * MAX_EMAIL_LINES
|
||||||
|
|
||||||
enum{
|
enum{
|
||||||
PREVIOUS_BUTTON=0,
|
PREVIOUS_BUTTON=0,
|
||||||
NEXT_BUTTON,
|
NEXT_BUTTON,
|
||||||
@@ -5475,7 +5477,7 @@ UINT32 cnt;
|
|||||||
void PreProcessEmail( EmailPtr pMail )
|
void PreProcessEmail( EmailPtr pMail )
|
||||||
{
|
{
|
||||||
RecordPtr pTempRecord, pCurrentRecord, pLastRecord , pTempList;
|
RecordPtr pTempRecord, pCurrentRecord, pLastRecord , pTempList;
|
||||||
CHAR16 pString[ 512 ];
|
CHAR16 pString[MAIL_STRING_SIZE];
|
||||||
INT32 iCounter = 0, iHeight = 0, iOffSet = 0;
|
INT32 iCounter = 0, iHeight = 0, iOffSet = 0;
|
||||||
BOOLEAN fGoingOffCurrentPage = FALSE;
|
BOOLEAN fGoingOffCurrentPage = FALSE;
|
||||||
INT32 iYPositionOnPage = 0;
|
INT32 iYPositionOnPage = 0;
|
||||||
|
|||||||
+1
-2
@@ -5,8 +5,7 @@
|
|||||||
#include "soldier profile type.h"
|
#include "soldier profile type.h"
|
||||||
|
|
||||||
// defines
|
// defines
|
||||||
#define MAX_EMAIL_LINES 10 //max number of lines can be shown in a message
|
#define MAX_MESSAGES_PAGE 18 // max number of emails per page in inbox
|
||||||
#define MAX_MESSAGES_PAGE 18 // max number of messages per page
|
|
||||||
|
|
||||||
//---ja25 ub
|
//---ja25 ub
|
||||||
#ifdef JA2UB
|
#ifdef JA2UB
|
||||||
|
|||||||
Reference in New Issue
Block a user