* Centering of choosing Difficulty dialog

* Centering of Counterstrike/Aftermath mission dialogs
This commit is contained in:
Ben Lankamp
2020-06-21 22:33:41 +02:00
parent bf229c1593
commit 8f8b0a7dc1
2 changed files with 6 additions and 31 deletions
+4 -29
View File
@@ -243,31 +243,8 @@ const char* XlatNames[] = {
#endif
#ifndef WIN32 //VG
#define OPTION_WIDTH 236
#ifdef FIXIT_CSII // checked - ajw 9/28/98
#error Can never again build without WIN32 defined.
#define OPTION_HEIGHT 162
#else
#define OPTION_HEIGHT 162
#endif
#define OPTION_X ((320 - OPTION_WIDTH) / 2)
#define OPTION_Y (200 - OPTION_HEIGHT) / 2
#else
#define OPTION_WIDTH 560
#ifdef FIXIT_CSII // checked - ajw 9/28/98
#define OPTION_HEIGHT 332
#else
#define OPTION_HEIGHT 300
#endif
#define OPTION_X ((640 - OPTION_WIDTH) / 2)
#define OPTION_Y (400 - OPTION_HEIGHT) / 2
#endif
#define OPTION_WIDTH 560
#define OPTION_HEIGHT 332
struct EObjectClass
{
@@ -355,11 +332,7 @@ void EListClass::Draw_Entry(int index, int x, int y, int width, int selected)
}
}
#ifndef WIN32
Conquer_Clip_Text_Print(buffer, x, y, scheme, TBLACK, flags & ~(TPF_CENTER), width, Tabs);
#else
Conquer_Clip_Text_Print(buffer, x + 100, y, scheme, TBLACK, flags & ~(TPF_CENTER), width, Tabs);
#endif
}
#ifdef FIXIT_VERSION_3
@@ -369,6 +342,8 @@ bool Expansion_Dialog(void)
#endif
{
GadgetClass * buttons = NULL;
int OPTION_X = (SeenBuff.Get_Width() - OPTION_WIDTH) / 2;
int OPTION_Y = (SeenBuff.Get_Height() - OPTION_HEIGHT) / 2;
#ifndef WIN32
TextButtonClass ok(200, TXT_OK, TPF_BUTTON, OPTION_X+40, OPTION_Y+OPTION_HEIGHT-15);
+2 -2
View File
@@ -477,8 +477,8 @@ int Fetch_Difficulty(void)
{
int const w = 250 * RESFACTOR;
int const h = 80 * RESFACTOR;
int const x = ((320 * RESFACTOR)/2) - w/2;
int const y = ((200 * RESFACTOR)/2) - h/2;
int const x = ( SeenBuff.Get_Width() - w ) / 2;
int const y = ( SeenBuff.Get_Height() - h ) / 2;
int const bwidth = 30 * RESFACTOR;
/*