Lines Matching full:if

126     if (current_display >= 0)  in IMPLEMENT_DYNAMIC()
144 if (!dlt.Load(MAKEINTRESOURCE(IDD_CONFIGURE_PROJECT_WIN))) in IMPLEMENT_DYNAMIC()
182 if (mpProject) in OnInitDialog()
220 if (!mpProject) in DoDataExchange()
247 if (pDX->m_bSaveAndValidate) in DoDataExchange()
374 #if defined(_DEBUG) in SaveDisplayConfig()
389 #if defined(STUDIOX_EVAL_BUILD) in SaveDisplayConfig()
391 if (radio_index == 1) in SaveDisplayConfig()
415 if (mpProject->mDisplays[display_index].format_332) in SaveDisplayConfig()
431 if (mpProject->mDisplays[display_index].format_4444 == TRUE) in SaveDisplayConfig()
433 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
442 else if (mpProject->mDisplays[display_index].format_555 == TRUE) in SaveDisplayConfig()
444 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
455 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
469 #if defined(_DEBUG) in SaveDisplayConfig()
470 if (mpProject->mDisplays[display_index].packed_format) in SaveDisplayConfig()
472 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
486 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
499 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
512 if (old_color_format != mpProject->mDisplays[display_index].colorformat) in SaveDisplayConfig()
517 if (color_format_changed) in SaveDisplayConfig()
522 if (!mpProject->mHeader.b_new_project) in SaveDisplayConfig()
532 if(mpProject->mDisplays[display_index].themes[theme].palette) in SaveDisplayConfig()
545 if (info) in SaveDisplayConfig()
547 // If we are running at 8 bit palette mode, then we need to create a default palette in SaveDisplayConfig()
548 if (mpProject->mDisplays[display_index].colorformat == GX_COLOR_FORMAT_8BIT_PALETTE) in SaveDisplayConfig()
563 if(old_pal) in SaveDisplayConfig()
573 if (old_cpu_type != mpProject->mHeader.target_cpu) in SaveDisplayConfig()
579 if ((IsCpuWithDave2D(mpProject->mHeader.target_cpu)) && in SaveDisplayConfig()
588 if (box) in SaveDisplayConfig()
596 if (!IsCpuWithDave2D(mpProject)) in SaveDisplayConfig()
598 if (mpProject->mDisplays[display_index].rotation_angle == GX_SCREEN_ROTATION_FLIP) in SaveDisplayConfig()
605 if (cpu_type_changed || color_format_changed || accelerator_disabled) in SaveDisplayConfig()
607 if (!mpProject->mDisplays[display_index].default_map_format) in SaveDisplayConfig()
609 // check to see if we have any pixelmaps that cannot be supported in new format: in SaveDisplayConfig()
610 if (color_format_changed) in SaveDisplayConfig()
614 else if (cpu_type_changed) in SaveDisplayConfig()
630 if (cpu_type_changed || in SaveDisplayConfig()
633 // check to see if we have any fonts that cannot be supported in new format: in SaveDisplayConfig()
640if (color_format_changed && (mpProject->mDisplays[display_index].colorformat <= GX_COLOR_FORMAT_8B… in SaveDisplayConfig()
659 if (IsDlgButtonChecked(IDC_RADIO_1BPP)) in GetBitsSelected()
663 else if (IsDlgButtonChecked(IDC_RADIO_2BPP)) in GetBitsSelected()
667 else if (IsDlgButtonChecked(IDC_RADIO_4BPP)) in GetBitsSelected()
671 else if (IsDlgButtonChecked(IDC_RADIO_8BPP)) in GetBitsSelected()
675 else if (IsDlgButtonChecked(IDC_RADIO_16BPP)) in GetBitsSelected()
679 else if (IsDlgButtonChecked(IDC_RADIO_24BPP)) in GetBitsSelected()
683 else if (IsDlgButtonChecked(IDC_RADIO_32BPP)) in GetBitsSelected()
693 if (GetBitsSelected() == 16) in Format4444Clicked()
695 if (((CButton *)GetDlgItem(IDC_CHECK_4444FORMAT))->GetCheck() == BST_CHECKED) in Format4444Clicked()
707 if (GetBitsSelected() == 16) in Format1555Clicked()
709 if (((CButton *)GetDlgItem(IDC_CHECK_555FORMAT))->GetCheck() == BST_CHECKED) in Format1555Clicked()
743 if (cpu_type == CPU_RX) in EnableDisableCCRX()
748 if (mToolsCombo.GetItemData(index) == TOOLS_CCRX) in EnableDisableCCRX()
760 // If ccrx was selected, reset to generic in EnableDisableCCRX()
761 if (mToolsCombo.GetItemData(mToolsCombo.GetCurSel()) == TOOLS_CCRX) in EnableDisableCCRX()
770 if (mToolsCombo.GetItemData(index) == TOOLS_CCRX) in EnableDisableCCRX()
791 if (cpu_type == CPU_SYNERGY) in EnableDisable()
820 if (cpu_type != CPU_SYNERGY) in EnableDisable()
846 if (cpu_type != CPU_SYNERGY) in EnableDisable()
858 if (cpu_type != CPU_SYNERGY) in EnableDisable()
860 if ((!IsDlgButtonChecked(IDC_CHECK_4444FORMAT)) && in EnableDisable()
880 #if defined(_DEBUG) in EnableDisable()
881 if (cpu_type != CPU_SYNERGY) in EnableDisable()
899 if (disable_reverse_order) in EnableDisable()
904 /* override the above logic for now, if we are not building in in EnableDisable()
915 #if !defined(_DEBUG) in EnableDisable()
930 if (val > 0 && val < 5) in OnEnEditNumScreens()
935 if (SelectedDisplay > val) in OnEnEditNumScreens()
955if (!TestInputName((CEdit*)GetDlgItem(IDC_SCREEN_NAME), "Name", mpProject->mDisplays[m_current_dis… in OnEnEditSelectedDisplay()
966 if (new_display >= 1 && new_display <= num_displays) in OnEnEditSelectedDisplay()
985 if (major_version != 5 && major_version != 6) in OnEnEditMajorVersion()
1000 if (minor_version < 0 || minor_version > 99) in OnEnEditMinorVersion()
1016 if (service_pack < 0 || service_pack > 99) in OnEnEditServicePack()
1031 if (pScrollBar) in OnVScroll()
1043 if (pScrollBar) in OnHScroll()
1077 if (iVal >= lower && iVal <= upper) in OnDeltaposSpinNumScreens()
1086 if (SelectedDisplay > iVal) in OnDeltaposSpinNumScreens()
1110 if (iVal <= upper && iVal >= lower) in OnDeltaposSpinScreenSelect()
1113if (!TestInputName((CEdit *)GetDlgItem(IDC_SCREEN_NAME), "Name", mpProject->mDisplays[iVal - 1].na… in OnDeltaposSpinScreenSelect()
1123 if (iVal <= upper && iVal >= lower) in OnDeltaposSpinScreenSelect()
1146 if (BrowseForFolder(m_hWnd, NULL, NULL, path)) in OnBnClickedBrowseSource()
1159 if (BrowseForFolder(m_hWnd, NULL, NULL, path)) in OnBnClickedBrowseHeader()
1173 if (BrowseForFolder(m_hWnd, NULL, NULL, path)) in OnBnClickedBrowseResource()
1194 if (IsCpuWithDave2D(cpu_type)) in OnAdvancedSettings()
1200 if (dlg.DoModal() == IDOK) in OnAdvancedSettings()
1221 if (IsCpuWithDave2D(cpu_type)) in OnChangeSelectedCPU()
1258 if (xres > GX_MAX_DISPLAY_RESOLUTION) in OnEditXRes()
1272 if (yres > GX_MAX_DISPLAY_RESOLUTION) in OnEditYRes()
1282 if (IsCpuWithDave2D(cpu_type)) in EnableDisableAdvancedSettings()
1300 if ((bits == 8) && (!IsDlgButtonChecked(IDC_CHECK_332FORMAT))) in EnableDisableAATextColorsSetting()
1302 if ((!IsDave2dFontFormat(mpProject, m_current_display)) || in EnableDisableAATextColorsSetting()
1318 if (!box->GetCount()) in InitAATextColorsCombobox()
1337 if (box) in EnableDisableFlipRotation()
1339 if (IsCpuWithDave2D(cpu_type)) in EnableDisableFlipRotation()
1341 if (box->GetCount() < 4) in EnableDisableFlipRotation()
1349 if (box->GetCount() > 3) in EnableDisableFlipRotation()
1366 if (box) in InitRotationAnglesCombobox()
1368 if (!box->GetCount()) in InitRotationAnglesCombobox()
1380 if (IsCpuWithDave2D(cpu_type)) in InitRotationAnglesCombobox()
1382 if (box->GetCount() < 4) in InitRotationAnglesCombobox()
1390 if (box->GetCount() > 3) in InitRotationAnglesCombobox()
1393 if (mpProject->mDisplays[display].rotation_angle == GX_SCREEN_ROTATION_FLIP) in InitRotationAnglesCombobox()
1425 if (child) in Save()
1427 // if an edit field has input focus, move focus so that in Save()
1448 if (TestInputName(edit, "Name", mpProject->mDisplays[display_index].name, mpParent)) in Save()
1473 if (focus_owner) in PreTranslateMessage()
1486 if (pMsg->message == WM_CHAR) in PreTranslateMessage()
1488 if (isprint(pMsg->wParam)) in PreTranslateMessage()
1490 if (pMsg->wParam < '0' || pMsg->wParam > '9') in PreTranslateMessage()
1597 if (lParam == GX_COLOR_FORMAT_4444ARGB) in OnTestMessage()
1638 if (id_control) in OnTestMessage()
1645 if (id != id_control) in OnTestMessage()
1672 if (id_control) in OnTestMessage()
1675 if (((CButton *)pWnd)->IsWindowEnabled()) in OnTestMessage()
1677 if (((CButton *)pWnd)->GetCheck() == BST_CHECKED) in OnTestMessage()
1718 if (pEntry->val == lParam) in OnTestMessage()
1800 if (current_display >= 0) in IMPLEMENT_DYNAMIC()
1815 if (mpProjectConfigWin) in ~ProjectConfigDlg()
1828 if (color_format <= GX_COLOR_FORMAT_4BIT_VGA) in GetDefaultColorTable()
1830 if (color_format == GX_COLOR_FORMAT_MONOCHROME) in GetDefaultColorTable()
1854 if (!project) in ColorTableConvert()
1866 if (!new_default_record || !old_default_record) in ColorTableConvert()
1876 if (info->type == RES_TYPE_COLOR) in ColorTableConvert()
1880 if (res_id < GX_MAX_DEFAULT_COLORS) in ColorTableConvert()
1887 if (res_id == new_record->color_id) in ColorTableConvert()
1892 if (new_default_record == old_default_record) in ColorTableConvert()
1896 if (colorval != info->colorval) in ColorTableConvert()
1898 // If system color is modified. in ColorTableConvert()
1919 if (info->child) in ColorTableConvert()
2010 if (red & 0x200000) { red |= 0x1f0000; } in CreateDefault332RGBPalette()
2014 if (green & 0x2000) { green |= 0x1f00; } in CreateDefault332RGBPalette()
2018 if (blue & 0x40) { blue |= 0x3f; } in CreateDefault332RGBPalette()
2034 if (project->mDisplays[display].themes[theme].palette) in CreateDefaultPalette()
2056 if (project->mDisplays[display].themes[theme].palette) in CreateDefaultPalette()
2096 if (old_pal && ((INT)colorval < old_palsize)) in GetRGBColor()
2143 if (new_pal) in GetColorVal()
2151 if ((colorval & 0xff) < 128) in GetColorVal()
2170if (colorval & 0x200000) { colorval |= 0x1f0000; } // extend red value, extend last bit of red of … in GetColorVal()
2171 if (colorval & 0x2000) { colorval |= 0x1f00; } // set green value; in GetColorVal()
2172 if (colorval & 0x40) { colorval |= 0x3f; } // set blue value; in GetColorVal()
2204 if (start->child) in CheckFontFormat()
2209 if (start->type == RES_TYPE_FONT) in CheckFontFormat()
2211 if ((!IsRenesasDave2D(project)) || in CheckFontFormat()
2214 if (start->compress) in CheckFontFormat()
2223 if (display_bits_per_pix < 16) in CheckFontFormat()
2230 if (display_bits_per_pix < 8) in CheckFontFormat()
2253 if (child) in DisableTextScrollWheelRoundStyle()
2258 if (start->basetype == GX_TYPE_STRING_SCROLL_WHEEL || in DisableTextScrollWheelRoundStyle()
2278 if (project) in ResetPixelmapFormat()
2282 if (start->child) in ResetPixelmapFormat()
2287 if (start->type == RES_TYPE_PIXELMAP) in ResetPixelmapFormat()
2290 if (project->mDisplays[m_display].colorformat == GX_COLOR_FORMAT_8BIT_PALETTE) in ResetPixelmapFormat()
2343 if (mpProjectConfigWin) in PositionChildren()
2372 if (mpProjectConfigWin->Save()) in OnOK()
2382 if (mpProjectConfigWin->Cancel()) in OnCancel()