void ST_Init(void) { byte *pal; byte *buffer; using_graphical_startup = false; if (graphical_startup && !debugmode && !testcontrols) { I_SetWindowTitleHR("Hexen startup - " PACKAGE_STRING); // Set 640x480x16 mode if (I_SetVideoModeHR()) { using_graphical_startup = true; I_InitWindowIcon(); S_StartSongName("orb", true); I_ClearScreenHR(); I_InitPaletteHR(); I_BlackPaletteHR(); // Load graphic buffer = ST_LoadScreen(); pal = buffer; bitmap = buffer + 16 * 3; I_SlamHR(bitmap); I_FadeToPaletteHR(pal); Z_Free(buffer); } } }
void ST_Init(void) { #ifdef __WATCOMC__ char *pal; char *buffer; if (!debugmode) { // Set 640x480x16 mode SetVideoModeHR(); ClearScreenHR(); InitPaletteHR(); BlackPaletteHR(); // Load graphic buffer = ST_LoadScreen(); pal = buffer; bitmap = buffer + 16*3; SlamHR(bitmap); FadeToPaletteHR(pal); Z_Free(buffer); } #endif }