Put version in window title.
This commit is contained in:
parent
ab10fcdf02
commit
2d64adf476
@ -48,7 +48,9 @@ const char *info_format =
|
|||||||
"velY: %f";
|
"velY: %f";
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
printf("SpaceShipSim v%s\n", VERSION);
|
char title[32];
|
||||||
|
sprintf(title, "SpaceShipSim v%s", VERSION);
|
||||||
|
puts(title);
|
||||||
|
|
||||||
if(!al_init())
|
if(!al_init())
|
||||||
{
|
{
|
||||||
@ -79,6 +81,7 @@ int main() {
|
|||||||
fprintf(stderr, "alleg5: failed to initialize display.\n");
|
fprintf(stderr, "alleg5: failed to initialize display.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
al_set_window_title(display, title);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
puts("Created display.");
|
puts("Created display.");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user