Lines Matching refs:DisplayIndex
956 int resource_view::BuildColorTable(int DisplayIndex, int ThemeIndex, int color_format, color_table … in BuildColorTable() argument
964 res_info *res = project->mDisplays[DisplayIndex].themes[ThemeIndex].GetFirstResourceInfo(); in BuildColorTable()
966 int numcolors = project->CountResources(DisplayIndex, RES_TYPE_COLOR); in BuildColorTable()
978 project->GetResourceName(DisplayIndex, RES_TYPE_COLOR, color_id, color_name); in BuildColorTable()
994 int resource_view::BuildFontTable(int DisplayIndex, int ThemeIndex, font_table *table) in BuildFontTable() argument
1001 res_info *res = project->mDisplays[DisplayIndex].themes[ThemeIndex].GetFirstResourceInfo(); in BuildFontTable()
1002 int numfonts = project->CountResources(DisplayIndex, RES_TYPE_FONT); in BuildFontTable()
1014 project->GetResourceName(DisplayIndex, RES_TYPE_FONT, font_id, font_name); in BuildFontTable()
1028 int resource_view::BuildPixelmapTable(int DisplayIndex, int ThemeIndex, pixelmap_table *table) in BuildPixelmapTable() argument
1035 res_info *res = project->mDisplays[DisplayIndex].themes[ThemeIndex].GetFirstResourceInfo(); in BuildPixelmapTable()
1036 int num_pixelmaps = project->CountResources(DisplayIndex, RES_TYPE_PIXELMAP); in BuildPixelmapTable()
1049 project->GetResourceName(DisplayIndex, RES_TYPE_PIXELMAP, pixelmap_id, pixelmap_name); in BuildPixelmapTable()
1062 void resource_view::CheckInstallPalette(int DisplayIndex, GX_DISPLAY *display) in CheckInstallPalette() argument
1071 if (project->IsPaletteMode(DisplayIndex) && in CheckInstallPalette()
1075 int theme_index = project->mDisplays[DisplayIndex].active_theme; in CheckInstallPalette()
1076 GX_COLOR *pPalette = project->mDisplays[DisplayIndex].themes[theme_index].palette; in CheckInstallPalette()
1081 project->mDisplays[DisplayIndex].themes[theme_index].palette_total_size); in CheckInstallPalette()
1087 void resource_view::InstallColorTable(int DisplayIndex, GX_DISPLAY *display) in InstallColorTable() argument
1093 if (DisplayIndex < 0) in InstallColorTable()
1098 int ThemeIndex = GetOpenProject()->mDisplays[DisplayIndex].active_theme; in InstallColorTable()
1105 CheckInstallPalette(DisplayIndex, display); in InstallColorTable()
1107 BuildColorTable(DisplayIndex, ThemeIndex, project->mDisplays[DisplayIndex].colorformat, &table); in InstallColorTable()
1122 void resource_view::InstallFontTable(int DisplayIndex, GX_DISPLAY *display) in InstallFontTable() argument
1127 if (DisplayIndex < 0) in InstallFontTable()
1132 int ThemeIndex = GetOpenProject()->mDisplays[DisplayIndex].active_theme; in InstallFontTable()
1134 BuildFontTable(DisplayIndex, ThemeIndex, &table); in InstallFontTable()
1152 void resource_view::InstallPixelmapTable(int DisplayIndex, GX_DISPLAY *display) in InstallPixelmapTable() argument
1157 if (DisplayIndex < 0) in InstallPixelmapTable()
1167 int ThemeIndex = GetOpenProject()->mDisplays[DisplayIndex].active_theme; in InstallPixelmapTable()
1171 CheckInstallPalette(DisplayIndex, display); in InstallPixelmapTable()
1174 BuildPixelmapTable(DisplayIndex, ThemeIndex, &table); in InstallPixelmapTable()
1185 void resource_view::BuildResourceTables(int DisplayIndex, GX_DISPLAY *display, BOOL update_resource… in BuildResourceTables() argument
1190 InstallColorTable(DisplayIndex, display); in BuildResourceTables()
1191 InstallFontTable(DisplayIndex, display); in BuildResourceTables()
1192 InstallPixelmapTable(DisplayIndex, display); in BuildResourceTables()
1194 string_table *table = project->mDisplays[DisplayIndex].stable; in BuildResourceTables()
1218 void resource_view::InstallResources(int DisplayIndex) in InstallResources() argument
1222 int ThemeIndex = GetOpenProject()->mDisplays[DisplayIndex].active_theme; in InstallResources()
1228 res_info *info = project->mDisplays[DisplayIndex].themes[ThemeIndex].GetFirstResourceInfo(); in InstallResources()
1238 … StartWorkThread(InstallResourcesThreadEntry, (LPVOID)DisplayIndex, "Installing Resources.", TRUE); in InstallResources()
1264 void resource_view::OnDisplaySelect(int DisplayIndex, BOOL bReload) in OnDisplaySelect() argument
1267 if (mDisplayIndex != DisplayIndex || bReload) in OnDisplaySelect()
1271 mDisplayIndex = DisplayIndex; in OnDisplaySelect()
1273 if (DisplayIndex >= 0) in OnDisplaySelect()
1275 InstallResources(DisplayIndex); in OnDisplaySelect()