Annotation of previous/src/gui-sdl/dlgAbout.c, revision 1.1.1.2

1.1       root        1: /*
1.1.1.2 ! root        2:   Previous - dlgAbout.c
1.1       root        3: 
                      4:   This file is distributed under the GNU Public License, version 2 or at
                      5:   your option any later version. Read the file gpl.txt for details.
                      6: 
                      7:   Show information about the program and its license.
                      8: */
1.1.1.2 ! root        9: const char DlgAbout_fileid[] = "Previous dlgAbout.c : " __DATE__ " " __TIME__;
1.1       root       10: 
                     11: #include "main.h"
                     12: #include "dialog.h"
                     13: #include "sdlgui.h"
                     14: 
                     15: 
                     16: /* The "About"-dialog: */
                     17: static SGOBJ aboutdlg[] =
                     18: {
1.1.1.2 ! root       19:        { SGBOX, 0, 0, 0,0, 56,22, NULL },
        !            20:        { SGTEXT, 0, 0, 21,1, 12,1, PROG_NAME },
        !            21:        { SGTEXT, 0, 0, 21,2, 12,1, "==============" },
        !            22:        { SGTEXT, 0, 0, 1,4, 38,1, "Previous emulates NeXT computer systems. It is derived" },
        !            23:        { SGTEXT, 0, 0, 1,5, 38,1, "from Hatari. This application is the work of many." },
        !            24:        { SGTEXT, 0, 0, 1,6, 38,1, "It was only possible with the help of the community at" },
        !            25:        { SGTEXT, 0, 0, 1,7, 38,1, "the NeXT International forums (www.nextcomputers.org)." },
        !            26:        { SGTEXT, 0, 0, 1,9, 38,1, "This program is free software; you can redistribute it" },
        !            27:        { SGTEXT, 0, 0, 1,10, 38,1, "and/or modify it under the terms of the GNU General" },
        !            28:        { SGTEXT, 0, 0, 1,11, 38,1, "Public License as published by the Free Software" },
        !            29:        { SGTEXT, 0, 0, 1,12, 38,1, "Foundation; either version 2 of the license, or (at" },
        !            30:        { SGTEXT, 0, 0, 1,13, 38,1, "your option) any later version." },
        !            31:        { SGTEXT, 0, 0, 1,15, 38,1, "This program is distributed in the hope that it will" },
        !            32:        { SGTEXT, 0, 0, 1,16, 38,1, "be useful, but WITHOUT ANY WARRANTY." },
        !            33:        { SGTEXT, 0, 0, 1,17, 38,1, "See the GNU General Public License for more details." },
        !            34:        { SGBUTTON, SG_DEFAULT, 0, 24,20, 8,1, "OK" },
1.1       root       35:        { -1, 0, 0, 0,0, 0,0, NULL }
                     36: };
                     37: 
                     38: 
                     39: /*-----------------------------------------------------------------------*/
                     40: /**
                     41:  * Show the "about" dialog:
                     42:  */
                     43: void Dialog_AboutDlg(void)
                     44: {
                     45:        /* Center PROG_NAME title string */
                     46:        aboutdlg[1].x = (aboutdlg[0].w - strlen(PROG_NAME)) / 2;
                     47: 
                     48:        SDLGui_CenterDlg(aboutdlg);
                     49:        SDLGui_DoDialog(aboutdlg, NULL);
                     50: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.