void CExtAviLabel::AviEmpty() { ASSERT_VALID( this ); AviStop(); if( m_pGF != NULL ) { VERIFY( ::AVIStreamGetFrameClose( m_pGF ) == NOERROR ); m_pGF = NULL; } if( m_pAS != NULL ) { ::AVIStreamRelease( m_pAS ); m_pAS = NULL; } if( ! m_strTempFileName.IsEmpty() ) { if( ::_taccess( LPCTSTR(m_strTempFileName), 0 ) != -1 ) { if( ! ::DeleteFile( LPCTSTR(m_strTempFileName) ) ) ::MoveFileEx( LPCTSTR(m_strTempFileName), NULL, MOVEFILE_DELAY_UNTIL_REBOOT ); } m_strTempFileName.Empty(); } if( m_hDrawDib != NULL ) { ::DrawDibClose( m_hDrawDib ); m_hDrawDib = NULL; } if( m_hWnd != NULL ) Invalidate(); }
bool CExtAviLabel::AviPlay( UINT nFrom, // = 0 UINT nTo, // = UINT(-1) UINT nRep // = UINT(-1) ) { ASSERT_VALID( this ); AviStop( true ); if( GetSafeHwnd() == NULL || AviIsEmpty() ) return false; if( nFrom == UINT(-1) ) nFrom = 0; if( nTo == UINT(-1) ) nTo = (m_nAviFrameTotalCount-1); nFrom = min( nFrom, (m_nAviFrameTotalCount-1) ); nTo = min( nTo, (m_nAviFrameTotalCount-1) ); if( nFrom == nTo ) return AviSeek( nFrom ); m_nAviFrameFrom = nFrom; m_nAviFrameTo = nTo; m_nRep = nRep; _Impl_CalcTime(); if( m_nAviFrameFrom != 0 ) m_nAviFrameCurrent = m_nAviFrameFrom; Invalidate(); if( nRep == 0 ) return true; SetTimer( m_nAviTimerID, m_nAviTimerEllapse, NULL ); m_bPlaying = true; return true; }
bool CExtAviLabel::AviStyleSet( DWORD dwAviStyle ) { ASSERT_VALID( this ); if( m_dwAviStyle == dwAviStyle ) return true; if( GetSafeHwnd() == NULL ) { m_dwAviStyle = dwAviStyle; return true; } AviStop(); m_ptAviOffset = CPoint( 0, 0 ); m_sizeAvi = CSize( 0, 0 ); m_dwAviStyle = dwAviStyle; if( ! AviIsEmpty() ) { _Impl_PostLoadSync(); _Impl_CalcTime(); } if( ( m_dwAviStyle & __EXT_AVI_TRANSPARENT_VIDEO ) != 0 ) m_clrTransparentEffective = OnAviCalcTransparentColor(); if( ( m_dwAviStyle & __EXT_AVI_PLAY_AUTOMATICALLY ) != 0 ) return AviPlay(); return true; }
bool CExtAviLabel::AviSeek( UINT nTo ) { ASSERT_VALID( this ); if( GetSafeHwnd() == NULL || m_pAS == NULL ) { ASSERT( FALSE ); return false; } if( m_bPlaying ) AviStop(); m_nAviFrameCurrent = min( nTo, (UINT)m_nAviFrameTotalCount ); m_bSeek = true; Invalidate(); return true; }
void CExtAviLabel::OnTimer( __EXT_MFC_UINT_PTR nIDEvent ) { ASSERT_VALID( this ); if( nIDEvent != m_nAviTimerID ) { CExtLabel::OnTimer( nIDEvent ); return; } UINT nLastFrame = ( m_nAviFrameTo == UINT(-1) ) ? ( m_nAviFrameFrom + m_nAviFrameCount ) : m_nAviFrameTo; if( (++m_nAviFrameCurrent) > nLastFrame ) { m_nAviFrameCurrent = m_nAviFrameFrom; if( m_nRep != UINT(-1) ) m_nRep --; if( m_nRep == 0 ) { AviStop( true ); return; } } Invalidate(); }
/** * @brief Alarm processing thread. */ void *ProcAlarmThread(void *arg) { int iCurTime; void *status = PROC_SUCESS; time_t tCurrentTime; struct tm *tmnow; AlarmParam_t* pEvironment = (AlarmParam_t*)arg; unsigned char enableIn,enableOut=0,trigger; LogEntry_t tLog; SysInfo *pSysInfo = pAlarmSysInfo; DBG("QID: %d\n", pEvironment ->msg_id); DBG("From: %d\n", pEvironment ->msg_buf.src); DBG("pSysInfo: %p\n", pSysInfo); DBG("Index: %d\n", pEvironment ->msg_buf.index); if((iCurTime = time(&tCurrentTime)) == -1){ ERR("Fail on get current time\n"); status =PROC_FAIL; goto ALARM_EXIT; } tmnow = localtime(&tCurrentTime); memcpy(&tLog.time, tmnow, sizeof(struct tm)); switch(pEvironment->msg_buf.event){ case ALARM_EVENT_AUDIO_TRIG: { int alarmDuration; DBG("ALARM_EVENT_AUDIO_TRIG \n"); if((pSysInfo->audio_config.alarmON == 0)|| (pSysInfo->lan_config.alarmstatus&FLG_UI_AUDIO)){ break; } AddSchedule(AUDIO_SCHEDULE, tmnow, pSysInfo); enableOut = (pSysInfo->lan_config.nExtAlarm&pSysInfo->lan_config.giooutenable); trigger=pSysInfo->lan_config.gioouttype; alarmDuration=pSysInfo->lan_config.nAlarmDuration; if(enableOut==1){ dm355_gio_write(GIO_ALARMOUT,trigger); Set_AlarmDuration(alarmDuration); } sprintf(tLog.event, "Audio Alarm"); fSetSysLog(&tLog); int count=0; count=getAudioCount(); if ( count > 0){ setAudioCount(alarmDuration); break; } else setAudioCount(alarmDuration); AlarmAudio_Play(pEvironment->audMsg_id); break; } case ALARM_EVENT_MOTION_DETECT: { int alarmDuration; DBG("ALARM_EVENT_MOTION_DETECT \n"); if((pSysInfo->motion_config.motionenable==0)|| (pSysInfo->lan_config.alarmstatus&FLG_UI_MOTION)){ break; } SetJpegStartSerial(pEvironment->msg_buf.serial); AddSchedule(MOTION_SCHEDULE, tmnow, pSysInfo); enableOut = (pSysInfo->lan_config.nExtAlarm&pSysInfo->lan_config.giooutenable); trigger=pSysInfo->lan_config.gioouttype; alarmDuration=pSysInfo->lan_config.nAlarmDuration; if(enableOut==1){ dm355_gio_write(GIO_ALARMOUT,trigger); Set_AlarmDuration(alarmDuration); } sprintf(tLog.event, "Motion Alarm"); fSetSysLog(&tLog); int count=0; count=getAudioCount(); if ( count > 0){ setAudioCount(alarmDuration); break; } else setAudioCount(alarmDuration); AlarmAudio_Play(pEvironment->audMsg_id); break; } case ALARM_EVENT_ALARMRESET_TRIG: { DBG("ALARM_EVENT_ALARMRESET_TRIG \n"); ResetSchedule(); Set_AlarmDuration(0); setAudioCount(-1); break; } case ALARM_EVENT_ALARMIN_TRIG: { int alarmDuration; DBG("ALARM_EVENT_ALARMIN_TRIG \n"); enableIn=(pSysInfo->lan_config.nExtAlarm&pSysInfo->lan_config.gioinenable); alarmDuration=pSysInfo->lan_config.nAlarmDuration; /** check if turn gio alarm on */ if((enableIn==0)|| (pSysInfo->lan_config.alarmstatus&FLG_UI_EXT)){ break; } AddSchedule(EXT_SCHEDULE, tmnow, pSysInfo); enableOut = (pSysInfo->lan_config.nExtAlarm&pSysInfo->lan_config.giooutenable); trigger=pSysInfo->lan_config.gioouttype; if(enableOut==1){ dm355_gio_write(GIO_ALARMOUT,trigger); Set_AlarmDuration(alarmDuration); } sprintf(tLog.event, "External Alarm"); fSetSysLog(&tLog); int count=0; count=getAudioCount(); if ( count > 0){ setAudioCount(alarmDuration); break; } else setAudioCount(alarmDuration); AlarmAudio_Play(pEvironment->audMsg_id); break; } case ALARM_EVENT_ALARMETH_TRIG: { int alarmDuration; DBG("ALARM_EVENT_ALARMETH_TRIG \n"); alarmDuration=pSysInfo->lan_config.nAlarmDuration; /** check if turn Ethernet alarm on */ if((pSysInfo->lan_config.lostalarm == 0)|| (pSysInfo->lan_config.alarmstatus&FLG_UI_ETH)){ break; } AddSchedule(ETH_SCHEDULE, tmnow, pSysInfo); enableOut = (pSysInfo->lan_config.nExtAlarm&pSysInfo->lan_config.giooutenable); trigger=pSysInfo->lan_config.gioouttype; if(enableOut==1){ dm355_gio_write(GIO_ALARMOUT,trigger); Set_AlarmDuration(alarmDuration); } sprintf(tLog.event, "Ethernet Alarm"); fSetSysLog(&tLog); int count=0; count=getAudioCount(); if ( count > 0){ setAudioCount(alarmDuration); break; } else setAudioCount(alarmDuration); AlarmAudio_Play(pEvironment->audMsg_id); break; } case ALARM_EVENT_SCHEDULE: { int nflag, bIsAviRun; int isFTPAVI,isSDAVI; int supportJPG,supportH264,supportH264cif,supportMpeg4,supportMpeg4cif,supportAVI; DBG("ALARM_EVENT_SCHEDULE \n"); isFTPAVI=pSysInfo->ftp_config.ftpfileformat; isSDAVI=pSysInfo->sdcard_config.sdfileformat; supportJPG = pSysInfo->lan_config.Supportstream1; supportMpeg4 = pSysInfo->lan_config.Supportstream2; supportMpeg4cif = pSysInfo->lan_config.Supportstream3; supportH264 = pSysInfo->lan_config.Supportstream5; supportH264cif = pSysInfo->lan_config.Supportstream6; supportAVI = supportH264|supportH264cif|supportMpeg4|supportMpeg4cif; bIsAviRun = 0; sprintf(tLog.event, "Schedule Record"); nflag =0; if(pSysInfo->sdcard_config.sdinsert<=1){ if(supportAVI&&pSysInfo->sdcard_config.sdrenable&&isSDAVI==0&& !gbSD_WriteProtect){ nflag |= AVI_TO_SD; bIsAviRun = 1; } if(supportAVI&&pSysInfo->ftp_config.rftpenable&&isFTPAVI==0){ nflag |= AVI_TO_FTP; bIsAviRun = 1; } if(bIsAviRun){ AviRun(0, nflag); SemWait(pEvironment->hAlarmSem); gSchAviRun = 1; SemRelease(pEvironment->hAlarmSem); } } else { /* AVI no stop case */ if(supportAVI&&pSysInfo->sdcard_config.sdrenable&&isSDAVI==0&& !gbSD_WriteProtect){ AviRun(1, AVI_TO_SD); SemWait(pEvironment->hAlarmSem); gSchAviRun = 1; SemRelease(pEvironment->hAlarmSem); } } nflag =0; if(isSDAVI==1&&pSysInfo->sdcard_config.sdrenable && !gbSD_WriteProtect) nflag |= JPG_TO_SD; /* Megapixel JPEG mode */ if(!supportAVI&&pSysInfo->sdcard_config.sdrenable&&!gbSD_WriteProtect) nflag |= JPG_TO_SD; if(pSysInfo->sdcard_config.sdinsert<=1){ if(isFTPAVI==1 &&pSysInfo->ftp_config.rftpenable) nflag |= JPG_TO_FTP; /* Megapixel JPEG mode*/ if(!supportAVI&&pSysInfo->ftp_config.rftpenable) nflag |= JPG_TO_FTP; if(nflag){ JpgRun(nflag, 0 ); SemWait(pEvironment->hAlarmSem); gSchJpgRun = 1; SemRelease(pEvironment->hAlarmSem); } } else{ if(supportJPG&&pSysInfo->ftp_config.rftpenable) nflag |= JPG_TO_FTP; if(nflag){ JpgRun(nflag, 1 ); SemWait(pEvironment->hAlarmSem); gSchJpgRun = 1; SemRelease(pEvironment->hAlarmSem); } } fSetSysLog(&tLog); break; } case ALARM_EVENT_SCHEDULE_END: { int isFTPAVI; int supportJPG=0,supportH264=0,supportH264cif=0,supportMpeg4=0,supportMpeg4cif=0,supportAVI=0; DBG("ALARM_EVENT_SCHEDULE_END\n"); isFTPAVI=pSysInfo->ftp_config.ftpfileformat; isFTPAVI=pSysInfo->ftp_config.ftpfileformat; supportJPG = pSysInfo->lan_config.Supportstream1; supportMpeg4 = pSysInfo->lan_config.Supportstream2; supportMpeg4cif = pSysInfo->lan_config.Supportstream3; supportH264 = pSysInfo->lan_config.Supportstream5; supportH264cif = pSysInfo->lan_config.Supportstream6; supportAVI = supportH264|supportH264cif|supportMpeg4|supportMpeg4cif; if(pSysInfo->sdcard_config.sdinsert==3){ /* AVI no stop case */ SemWait(pEvironment->hAlarmSem); if(!gbSD_WriteProtect && gSchAviRun){ AviStop(); gSchAviRun = 0; } if(gSchJpgRun){ JpgStop(1); gSchJpgRun = 0; } SemRelease(pEvironment->hAlarmSem); } else { SemWait(pEvironment->hAlarmSem); if(gSchAviRun){ AviStop(); gSchAviRun = 0; } if(gSchJpgRun){ JpgStop(0); gSchJpgRun = 0; } SemRelease(pEvironment->hAlarmSem); } break; } default: ERR("Unknown Event\n"); sprintf(tLog.event, "Unknown Event"); fSetSysLog(&tLog); status = PROC_FAIL; break; } ALARM_EXIT: free(pEvironment); DBG("Free evironment sucess\n"); pthread_exit(status); return status; }
static void onCommand(HWND hDlg, int id, HWND /*hwndCtl*/, UINT codeNotify) { if (bLoading) { return; } switch (id) { case MENU_LOAD: HK_openGame(0); break; case MENU_LOAD_QUICK: HK_quickOpenGame(0); break; case MENU_QUIT: HK_exitGame(0); break; case MENU_EXIT: StopReplay(); AviStop(); FBA_KailleraEnd(); PostQuitMessage(0); menuSync(MENUT_ALL); return; case MENU_PAUSE: HK_pause(0); break; case MENU_CARTR_MOUNT: mountCartridge(true); menuSync(MENUT_FILE); break; case MENU_CARTR_UNMOUNT: mountCartridge(false); menuSync(MENUT_FILE); break; case MENU_STARTNET: if (!kNetGame) { InputSetCooperativeLevel(false, !bAlwaysProcessKey); audio.blank(); SplashDestroy(1); StopReplay(); AviStop(); BurnerDrvExit(); // load kaillera.dll if (FBA_KailleraInit()) { DoNetGame(); } menuSync(MENUT_ALL); InputSetCooperativeLevel(false, !bAlwaysProcessKey); } break; case MENU_STARTREPLAY: HK_playRec(0); break; case MENU_STARTRECORD: HK_startRec(0); break; case MENU_STOPREPLAY: HK_stopRec(0); break; case MENU_AVISTART: HK_startAvi(0); break; case MENU_AVISTOP: HK_stopAvi(0); break; case MENU_AVIINTAUD: nAviIntAudio = !nAviIntAudio; menuSync(MENUT_FILE); break; case MENU_MEMCARD_CREATE: if (useDialogs() && bDrvOkay && !kNetGame && (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) == HARDWARE_SNK_NEOGEO) { InputSetCooperativeLevel(false, !bAlwaysProcessKey); audio.blank(); MemCardEject(); MemCardCreate(); MemCardInsert(); menuSync(MENUT_FILE); GameInpCheckMouse(); } break; case MENU_MEMCARD_SELECT: if (useDialogs() && bDrvOkay && !kNetGame && (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) == HARDWARE_SNK_NEOGEO) { InputSetCooperativeLevel(false, !bAlwaysProcessKey); audio.blank(); MemCardEject(); MemCardSelect(); MemCardInsert(); menuSync(MENUT_FILE); GameInpCheckMouse(); } break; case MENU_MEMCARD_INSERT: if (bDrvOkay && !kNetGame && (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) == HARDWARE_SNK_NEOGEO) { MemCardInsert(); } break; case MENU_MEMCARD_EJECT: if (bDrvOkay && !kNetGame && (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) == HARDWARE_SNK_NEOGEO) { MemCardEject(); } break; case MENU_MEMCARD_TOGGLE: if (bDrvOkay && !kNetGame && (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) == HARDWARE_SNK_NEOGEO) { MemCardToggle(); } break; case MENU_STATE_LOAD_DIALOG: HK_loadStateDialog(0); break; case MENU_STATE_SAVE_DIALOG: HK_saveStateDialog(0); return; case MENU_STATE_PREVSLOT: HK_prevState(0); break; case MENU_STATE_NEXTSLOT: HK_nextState(0); break; case MENU_STATE_LOAD_SLOT: HK_loadCurState(0); break; case MENU_STATE_SAVE_SLOT: HK_saveCurState(0); break; case MENU_STATE_ALLRAM: bDrvSaveAll = !bDrvSaveAll; menuSync(MENUT_FILE); break; case MENU_WLOGSTART: audio.blank(); waveLogStart(); break; case MENU_WLOGEND: audio.blank(); waveLogStop(); break; case MENU_NOSTRETCH: bVidCorrectAspect = 0; bVidFullStretch = 0; simpleReinitScrn(false); menuSync(MENUT_SETTING); break; case MENU_STRETCH: bVidFullStretch = 1; bVidCorrectAspect = 0; simpleReinitScrn(false); menuSync(MENUT_SETTING); break; case MENU_ASPECT: bVidCorrectAspect = 1; bVidFullStretch = 0; simpleReinitScrn(false); menuSync(MENUT_SETTING); break; case MENU_FULL: HK_fullscreen(0); return; case MENU_AUTOSIZE: if (nWindowSize != 0) { nWindowSize = 0; simpleReinitScrn(false); menuSync(MENUT_SETTING); } break; case MENU_WINDOWSIZE1X: HK_windowSize(1); break; case MENU_WINDOWSIZE2X: HK_windowSize(2); break; case MENU_WINDOWSIZE3X: HK_windowSize(3); break; case MENU_WINDOWSIZE4X: HK_windowSize(4); break; case MENU_WINDOWSIZEMAX: HK_windowSizeMax(0); break; case MENU_HOTKEYS: MHkeysCreate(hDlg); break; case MENU_INPUT: HK_configPad(0); break; case MENU_DIPSW: HK_setDips(0); break; case MENU_SETCPUCLOCK: audio.blank(); CPUClockDialog(hDlg); menuSync(MENUT_GAME); GameInpCheckMouse(); break; case MENU_RESETCPUCLOCK: nBurnCPUSpeedAdjust = 0x0100; menuSync(MENUT_GAME); break; // ==> rom save case MENU_SAVEC: bsavedecryptedcs = !bsavedecryptedcs; menuSync(MENUT_GAME); break; case MENU_SAVEP: bsavedecryptedps = !bsavedecryptedps; menuSync(MENUT_GAME); break; case MENU_SAVES: bsavedecrypteds1 = !bsavedecrypteds1; menuSync(MENUT_GAME); break; case MENU_SAVEV: bsavedecryptedvs = !bsavedecryptedvs; menuSync(MENUT_GAME); break; case MENU_SAVEM: bsavedecryptedm1 = !bsavedecryptedm1; menuSync(MENUT_GAME); break; case MENU_SAVEXOR: bsavedecryptedxor = !bsavedecryptedxor; menuSync(MENUT_GAME); break; case MENU_SAVEDPROM: bsavedecryptedprom = !bsavedecryptedprom; menuSync(MENUT_GAME); break; // <== rom save case MENU_LANGUAGE_SELECT: if (useDialogs()) { if (!FBALocaliseLoad()) { menuReinit(); } } break; case MENU_LANGUAGE_UNLOAD: _tcsncpy(szLanguage, _T(""), sizearray(szLanguage)); FBALocaliseExit(); menuReinit(); break; case MENU_GAMELIST_SELECT: if (useDialogs()) { loadGamelist(); } break; case MENU_GAMELIST_EXPORT: if (useDialogs()) { createGamelist(); } break; case MENU_MISCDIR_EDIT: if (useDialogs()) { pathSheetCreate(hDlg); } break; case MENU_ROMDIR_EDIT: if (useDialogs()) { RomsDirCreate(hDlg); } break; case MENU_ENABLECHEAT: HK_cheatEditor(0); break; #ifndef NO_CHEATSEARCH case MENU_CHEATSEARCH: HK_cheatSearch(0); break; #endif // ==> simple jukebox, added by regret case MENU_JUKEBOX: if (useDialogs()) { jukeCreate(); InputSetCooperativeLevel(false, !bAlwaysProcessKey); } break; // <== simple jukebox case MENU_DEBUG: if (useDialogs()) { InputSetCooperativeLevel(false, !bAlwaysProcessKey); DebugCreate(); } break; case MENU_SAVESNAP: { HK_screenShot(0); break; } case MENU_SNAPFACT: HK_shotFactory(0); break; case MENU_SKIN_SELECT: if (useDialogs()) { if (selectSkin() == 0) { simpleReinitScrn(true); } } break; case MENU_SKIN_UNLOAD: _tcsncpy(szPlaceHolder, _T(""), sizearray(szPlaceHolder)); simpleReinitScrn(true); break; case MENU_CLRMAMEPRO_XML: if (useDialogs()) { createDatfileWindows(1); } break; case MENU_CLRMAME_PRO: if (useDialogs()) { createDatfileWindows(0); } break; case MENU_SAVESET: configAppSaveXml(); break; case MENU_LOADSET: configAppLoadXml(); POST_INITIALISE_MESSAGE; break; case MENU_ABOUT: if (useDialogs()) { InputSetCooperativeLevel(false, !bAlwaysProcessKey); audio.blank(); AboutCreate(hDlg); GameInpCheckMouse(); } break; case MENU_SYSINFO: if (useDialogs()) { InputSetCooperativeLevel(false, !bAlwaysProcessKey); audio.blank(); SystemInfoCreate(hDlg); GameInpCheckMouse(); } break; case MENU_CONTENTS: { if (useDialogs()) { FILE* fp = _tfopen(_T("readme.txt"), _T("r")); if (fp) { fclose(fp); ShellExecute(NULL, _T("open"), _T("readme.txt"), NULL, NULL, SW_SHOWNORMAL); } } break; } case MENU_WWW_HOME: ShellExecute(NULL, _T("open"), _T("http://www.barryharris.me.uk/"), NULL, NULL, SW_SHOWNORMAL); break; case MENU_WWW_FORUM: ShellExecute(NULL, _T("open"), _T("http://neosource.1emulation.com/forums/"), NULL, NULL, SW_SHOWNORMAL); break; case MENU_WWW_FORUM1: ShellExecute(NULL, _T("open"), _T("http://www.egcg.com.cn/bbs/"), NULL, NULL, SW_SHOWNORMAL); break; // filters case MENU_SOFT_NONE: vidUseFilter = 0; nVidFilter = 0; VidReinit(); menuSync(MENUT_SETTING); break; case MENU_SOFT_EPXB: case MENU_SOFT_EPXC: case MENU_SOFT_SCALE2X: case MENU_SOFT_SCALE3X: case MENU_SOFT_2XSAI: case MENU_SOFT_SUPER2XSAI: case MENU_SOFT_SUPEREAGLE: case MENU_SOFT_2XPMHQ: case MENU_SOFT_HQ2X: case MENU_SOFT_HQ2XS: case MENU_SOFT_HQ2XBOLD: case MENU_SOFT_HQ3X: case MENU_SOFT_HQ3XS: case MENU_SOFT_HQ3XBOLD: case MENU_SOFT_SCANLINE: case MENU_SOFT_SCANLINE50: case MENU_SOFT_SCANLINE25: case MENU_SOFT_INTERSCANLINE: case MENU_SOFT_INTERSCANLINE50: case MENU_SOFT_INTERSCANLINE25: vidUseFilter = 1; nVidFilter = id - MENU_SOFT_NONE; scrnSize(); VidSwitchFilter(nVidFilter); menuSync(MENUT_SETTING); break; case MENU_FILTER_AUTOSIZE: vidForceFilterSize = !vidForceFilterSize; simpleReinitScrn(true); menuSync(MENUT_SETTING); break; // Options for blitters case MENU_FILTER_POINT: if (vidFilterLinear) { vidFilterLinear = 0; VidReinit(); menuSync(MENUT_SETTING); } break; case MENU_FILTER_LINEAR: if (!vidFilterLinear) { vidFilterLinear = 1; VidReinit(); menuSync(MENUT_SETTING); } break; case MENU_CONFIGALL: if (useDialogs()) { preferenceCreate(hDlg); setWindowAspect(); menuReinit(); simpleReinitScrn(true); mediaReInitAudio(); } break; case MENU_VIDEOCONFIG: if (useDialogs()) { prefVideoCreate(hDlg); setWindowAspect(); simpleReinitScrn(true); } break; case MENU_AUDIOCONFIG: if (useDialogs()) { prefAudioCreate(hDlg); mediaReInitAudio(); } break; case MENU_MISCCONFIG: if (useDialogs()) { prefMiscCreate(hDlg); menuReinit(); VidReinit(); } break; // default: // printf(" * Command %i sent.\n"); } if (ChatActivated()) { switch (codeNotify) { case EN_CHANGE: { bEditTextChanged = true; SendMessage(GetChatWindow(), WM_GETTEXT, (WPARAM)MAX_CHAT_SIZE + 1, (LPARAM)EditText); break; } case EN_KILLFOCUS: { ActivateChat(); break; } case EN_MAXTEXT: { VidSNewShortMsg(FBALoadStringEx(IDS_NETPLAY_TOOMUCH), 0xFF3F3F); break; } } } }
void CExtAviLabel::PostNcDestroy() { ASSERT_VALID( this ); AviStop(); CExtLabel::PostNcDestroy(); }