mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- Some cosmetic changes to the startup console.
This commit is contained in:
parent
9c1969e63a
commit
d5a15c66ad
2 changed files with 13 additions and 8 deletions
|
@ -768,7 +768,12 @@ const FIWADInfo *FIWadManager::FindIWAD(TArray<FString> &wadfiles, const char *i
|
|||
int iwadType = IdentifyVersion(wadfiles, iwad, basewad, optionalwad);
|
||||
//gameiwad = iwadType;
|
||||
const FIWADInfo *iwad_info = &mIWadInfos[iwadType];
|
||||
if (DoomStartupInfo.Name.IsEmpty()) DoomStartupInfo.Name = iwad_info->Name;
|
||||
if (DoomStartupInfo.Name.IsEmpty())
|
||||
{
|
||||
DoomStartupInfo.Name = iwad_info->Name;
|
||||
if (iwad_info->gametype == GAME_Doom)
|
||||
DoomStartupInfo.Name << " v" << VERSIONSTR;
|
||||
}
|
||||
if (DoomStartupInfo.BkColor == 0 && DoomStartupInfo.FgColor == 0)
|
||||
{
|
||||
DoomStartupInfo.BkColor = iwad_info->BkColor;
|
||||
|
|
|
@ -362,7 +362,7 @@ void LayoutMainWindow (HWND hWnd, HWND pane)
|
|||
|
||||
if (DoomStartupInfo.Name.IsNotEmpty() && GameTitleWindow != NULL)
|
||||
{
|
||||
bannerheight = GameTitleFontHeight + 5;
|
||||
bannerheight = GameTitleFontHeight + 2;
|
||||
MoveWindow (GameTitleWindow, 0, 0, w, bannerheight, TRUE);
|
||||
InvalidateRect (GameTitleWindow, NULL, FALSE);
|
||||
}
|
||||
|
@ -447,11 +447,11 @@ LRESULT CALLBACK LConProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
// Create game title static control
|
||||
memset (&lf, 0, sizeof(lf));
|
||||
hdc = GetDC (hWnd);
|
||||
lf.lfHeight = -MulDiv(12, GetDeviceCaps(hdc, LOGPIXELSY), 72);
|
||||
lf.lfHeight = -MulDiv(10, GetDeviceCaps(hdc, LOGPIXELSY), 72);
|
||||
lf.lfCharSet = ANSI_CHARSET;
|
||||
lf.lfWeight = FW_BOLD;
|
||||
lf.lfPitchAndFamily = VARIABLE_PITCH | FF_ROMAN;
|
||||
strcpy (lf.lfFaceName, "Trebuchet MS");
|
||||
lf.lfWeight = FW_NORMAL;
|
||||
lf.lfPitchAndFamily = DEFAULT_PITCH | FF_MODERN;
|
||||
strcpy (lf.lfFaceName, "DejaVu Sans");
|
||||
GameTitleFont = CreateFontIndirect (&lf);
|
||||
|
||||
oldfont = SelectObject (hdc, GetStockObject (DEFAULT_GUI_FONT));
|
||||
|
@ -484,7 +484,7 @@ LRESULT CALLBACK LConProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
}
|
||||
SendMessage (view, EM_SETREADONLY, TRUE, 0);
|
||||
SendMessage (view, EM_EXLIMITTEXT, 0, 0x7FFFFFFE);
|
||||
SendMessage (view, EM_SETBKGNDCOLOR, 0, RGB(70,70,70));
|
||||
SendMessage (view, EM_SETBKGNDCOLOR, 0, RGB(20,20,20));
|
||||
// Setup default font for the log.
|
||||
//SendMessage (view, WM_SETFONT, (WPARAM)GetStockObject (DEFAULT_GUI_FONT), FALSE);
|
||||
format.cbSize = sizeof(format);
|
||||
|
@ -585,7 +585,7 @@ LRESULT CALLBACK LConProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
drawitem = (LPDRAWITEMSTRUCT)lParam;
|
||||
|
||||
// This background color should match the edit control's.
|
||||
hbr = CreateSolidBrush (RGB(70,70,70));
|
||||
hbr = CreateSolidBrush (RGB(20,20,20));
|
||||
FillRect (drawitem->hDC, &drawitem->rcItem, hbr);
|
||||
DeleteObject (hbr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue