//------------------------------------------------------------------------- // Display640() //------------------------------------------------------------------------- void Display640(void) { // Can you believe it takes all this just to change to 640 mode!!???! // VW_ScreenToScreen(0,FREESTART-STATUSLEN,40,80); VW_SetLineWidth(80); MoveScreen(0,0); VW_Bar (0,0,640,200,0); VW_SetScreenMode(EGA640GR); VW_SetLineWidth(80); BlackPalette(); }
//------------------------------------------------------------------------- // Display320() //------------------------------------------------------------------------- void Display320(void) { // Can you believe it takes all this just to change to 320 mode!!???! // VW_ColorBorder(0); VW_FadeOut(); VW_SetLineWidth(40); MoveScreen(0,0); VW_Bar (0,0,320,200,0); VW_SetScreenMode(EGA320GR); VW_SetLineWidth(40); BlackPalette(); VW_ScreenToScreen(FREESTART-STATUSLEN,0,40,80); }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HINSTANCE v4; // esi //int v11; // ecx char Filename[260]; // [esp+8h] [ebp-10Ch] char value_name[8]; // [esp+10Ch] [ebp-8h] v4 = hInstance; #ifndef DEBUGGER diablo_reload_process(hInstance); #endif ghInst = v4; if ( RestrictedTest() ) ErrDlg(TEMPLATE_ERR_RESTRICTED, 0, "C:\\Src\\Diablo\\Source\\DIABLO.CPP", 877); if ( ReadOnlyTest() ) { if ( !GetModuleFileNameA(ghInst, Filename, 0x104u) ) *Filename = '\0'; DirErrDlg(Filename); } ShowCursor(FALSE); srand(GetTickCount()); encrypt_init_lookup_table(); exception_get_filter(); if ( !diablo_find_window("DIABLO") && diablo_get_not_running() ) { diablo_init_screen(); diablo_parse_flags(lpCmdLine); init_create_window(); sound_init(); UiInitialize(); #ifdef _DEBUG if ( showintrodebug ) play_movie("gendata\\logo.smk", 1); #else play_movie("gendata\\logo.smk", 1); #endif strcpy(value_name, "Intro"); if ( !SRegLoadValue("Diablo", value_name, 0, (int *)&hInstance) ) hInstance = (HINSTANCE)1; if ( hInstance ) play_movie("gendata\\diablo1.smk", 1); SRegSaveValue("Diablo", value_name, 0, 0); #ifdef _DEBUG if ( showintrodebug ) { UiTitleDialog(7); BlackPalette(); } #else UiTitleDialog(7); BlackPalette(); #endif mainmenu_action(0); /* v11 fix unused arg */ UiDestroy(); palette_save_gamme(); if ( ghMainWnd ) { Sleep(300); DestroyWindow(ghMainWnd); } } return 0; }