コード例 #1
0
ファイル: i_video.c プロジェクト: WinterMute/prboom
void I_InitGraphics(void)
{
    char titlebuffer[2048];
    static int    firsttime=1;

    if (firsttime)
    {
        firsttime = 0;

        SCREENWIDTH = 256;
        SCREENHEIGHT = 192;
        SCREENPITCH = 256;

        atexit(I_ShutdownGraphics);
        lprintf(LO_INFO, "I_InitGraphics: %dx%d\n", SCREENWIDTH, SCREENHEIGHT);

        /* Set the video mode */
        I_UpdateVideoMode();

        /* Setup the window title */
        snprintf(titlebuffer,sizeof(titlebuffer),"%s %s", PACKAGE, VERSION);

        /* Initialize the input system */
        I_InitInputs();
    }
}
コード例 #2
0
ファイル: i_video.c プロジェクト: CaptainHIT/prboom
void I_InitGraphics(void)
{
  char titlebuffer[2048];
  static int    firsttime=1;

  if (firsttime)
  {
    firsttime = 0;

    atexit(I_ShutdownGraphics);
    lprintf(LO_INFO, "I_InitGraphics: %dx%d\n", SCREENWIDTH, SCREENHEIGHT);

    /* Set the video mode */
    I_UpdateVideoMode();

    /* Setup the window title */
    strcpy(titlebuffer,PACKAGE);
    strcat(titlebuffer," ");
    strcat(titlebuffer,VERSION);
    SDL_WM_SetCaption(titlebuffer, titlebuffer);

    /* Initialize the input system */
    I_InitInputs();
  }
}
コード例 #3
0
void I_InitGraphics(void)
{
  static int    firsttime=1;

  if (firsttime)
  {
    firsttime = 0;

    atexit(I_ShutdownGraphics);
    lprintf(LO_INFO, "I_InitGraphics: %dx%d\n", SCREENWIDTH, SCREENHEIGHT);

    /* Set the video mode */
    I_UpdateVideoMode();

    //e6y: setup the window title
    I_SetWindowCaption();

    //e6y: set the application icon
    I_SetWindowIcon();

    /* Initialize the input system */
    I_InitInputs();

    //e6y: new mouse code
    UpdateFocus();
    UpdateGrab();
  }
}
コード例 #4
0
void I_InitGraphics(void)
{
  static int    firsttime=1;

  if (firsttime)
  {
    firsttime = 0;

    if (log_cb)
       log_cb(RETRO_LOG_INFO, "I_InitGraphics: %dx%d\n", SCREENWIDTH, SCREENHEIGHT);

    /* Set the video mode */
    I_UpdateVideoMode();

  }
}
コード例 #5
0
ファイル: i_video.c プロジェクト: devinacker/prboom-3ds
void I_InitGraphics(void)
{
  char titlebuffer[2048];
  static int    firsttime=1;

  if (firsttime)
  {
    firsttime = 0;

    atexit(I_ShutdownGraphics);
    lprintf(LO_INFO, "I_InitGraphics: %dx%d\n", SCREENWIDTH, SCREENHEIGHT);

    /* Set the video mode */
    I_UpdateVideoMode();

	/* Initialize palette */
	I_UploadNewPalette(0);

    /* Initialize the input system */
    I_InitInputs();
  }
}