void CruiseEngine::pauseEngine(bool pause) { Engine::pauseEngine(pause); if (pause) { // Draw the 'Paused' message drawSolidBox(64, 100, 256, 117, 0); drawString(10, 100, langString(ID_PAUSED), gfxModuleData.pPage00, itemColor, 300); gfxModuleData_flipScreen(); _savedCursor = currentCursor; changeCursor(CURSOR_NOMOUSE); } else { processAnimation(); flipScreen(); changeCursor(_savedCursor); } gfxModuleData_addDirtyRect(Common::Rect(64, 100, 256, 117)); }
int16 Op_FadeOut() { for (long int i = 0; i < 256; i += 32) { for (long int j = 0; j < 256; j++) { int offsetTable[3]; offsetTable[0] = -32; offsetTable[1] = -32; offsetTable[2] = -32; calcRGB(&workpal[3*j], &workpal[3*j], offsetTable); } gfxModuleData_setPal256(workpal); gfxModuleData_flipScreen(); } memset(globalScreen, 0, 320 * 200); flip(); fadeFlag = 1; PCFadeFlag = true; return 0; }