mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 07:41:22 +00:00
Made title text always visible in OS X startup window
Added temporary solution for the same foreground and background colors of the title in OS X startup window It's used in graphical startup screen, with Hexen style in particular (for example WolfenDoom - Blade of Agony) Native OS X backend doesn't implement this yet
This commit is contained in:
parent
fe973ba442
commit
93c334059a
1 changed files with 9 additions and 0 deletions
|
@ -363,6 +363,15 @@ void FConsoleWindow::SetTitleText()
|
||||||
textViewFrame.size.width,
|
textViewFrame.size.width,
|
||||||
TITLE_TEXT_HEIGHT);
|
TITLE_TEXT_HEIGHT);
|
||||||
|
|
||||||
|
// Temporary solution for the same foreground and background colors
|
||||||
|
// It's used in graphical startup screen, with Hexen style in particular
|
||||||
|
// Native OS X backend doesn't implement this yet
|
||||||
|
|
||||||
|
if (DoomStartupInfo.FgColor == DoomStartupInfo.BkColor)
|
||||||
|
{
|
||||||
|
DoomStartupInfo.FgColor = ~DoomStartupInfo.FgColor;
|
||||||
|
}
|
||||||
|
|
||||||
NSTextField* titleText = [[NSTextField alloc] initWithFrame:titleTextRect];
|
NSTextField* titleText = [[NSTextField alloc] initWithFrame:titleTextRect];
|
||||||
[titleText setStringValue:[NSString stringWithUTF8String:DoomStartupInfo.Name]];
|
[titleText setStringValue:[NSString stringWithUTF8String:DoomStartupInfo.Name]];
|
||||||
[titleText setAlignment:NSCenterTextAlignment];
|
[titleText setAlignment:NSCenterTextAlignment];
|
||||||
|
|
Loading…
Reference in a new issue