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(); } }
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(); } }
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(); } }
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(); } }
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(); } }