displays the copyright text
| 419 | |
| 420 | // displays the copyright text |
| 421 | void mmInterface::CopyrightText() { |
| 422 | int i; |
| 423 | char type[16]; |
| 424 | type[0] = 0; |
| 425 | #ifdef DEMO |
| 426 | strcpy(type, "Demo "); |
| 427 | #endif |
| 428 | |
| 429 | if (PROGRAM(beta)) |
| 430 | strcpy(type, "Beta "); |
| 431 | |
| 432 | #ifdef OEM |
| 433 | strcat(type, "OEM "); |
| 434 | #endif |
| 435 | |
| 436 | if (Program_version.version_type == DEVELOPMENT_VERSION) { |
| 437 | strcat(type, "Dev"); |
| 438 | } else if (Program_version.version_type == RELEASE_VERSION) { |
| 439 | strcat(type, "Ver"); |
| 440 | } |
| 441 | |
| 442 | int x = Max_window_w - 164, y = Max_window_h - 29; // was -128 and -16 |
| 443 | |
| 444 | // attempt to print text nicely. |
| 445 | grtext_SetFont(BRIEFING_FONT); |
| 446 | grtext_SetAlpha(192); |
| 447 | grtext_SetColor(GR_RGB(255, 32, 32)); |
| 448 | |
| 449 | grtext_Printf(x, y, "%s %d.%d.%d %s", type, Program_version.major, |
| 450 | Program_version.minor, Program_version.build, D3_GIT_HASH); |
| 451 | grtext_SetFlags(GRTEXTFLAG_SHADOW); |
| 452 | grtext_Printf(x, y, "%s %d.%d.%d %s", type, Program_version.major, |
| 453 | Program_version.minor, Program_version.build, D3_GIT_HASH); |
| 454 | |
| 455 | grtext_Flush(); |
| 456 | } |
| 457 | |
| 458 | void mmInterface::SetMusicRegion(int region) { |
| 459 | if (region == -1) { |
no test coverage detected