Lines Matching refs:pInfo

1956 void studiox_project::DefaultScrollbarAppearance(display_info *pInfo, int theme)  in DefaultScrollbarAppearance()  argument
1958 memset(&pInfo->themes[theme].VScrollAppearance, 0, sizeof(GX_SCROLLBAR_APPEARANCE)); in DefaultScrollbarAppearance()
1959 pInfo->themes[theme].VScrollAppearance.gx_scroll_width = 20; in DefaultScrollbarAppearance()
1960 pInfo->themes[theme].VScrollAppearance.gx_scroll_thumb_travel_min = 20; in DefaultScrollbarAppearance()
1961 pInfo->themes[theme].VScrollAppearance.gx_scroll_thumb_travel_max = 20; in DefaultScrollbarAppearance()
1962 pInfo->themes[theme].VScrollAppearance.gx_scroll_thumb_width = 18; in DefaultScrollbarAppearance()
1963 pInfo->themes[theme].VScrollAppearance.gx_scroll_thumb_color = GX_COLOR_ID_SCROLL_BUTTON; in DefaultScrollbarAppearance()
1964 pInfo->themes[theme].VScrollAppearance.gx_scroll_thumb_border_color = GX_COLOR_ID_SCROLL_BUTTON; in DefaultScrollbarAppearance()
1965 pInfo->themes[theme].VScrollAppearance.gx_scroll_button_color = GX_COLOR_ID_SCROLL_BUTTON; in DefaultScrollbarAppearance()
1966 pInfo->themes[theme].VScrollAppearance.gx_scroll_thumb_border_style = GX_STYLE_BORDER_THIN; in DefaultScrollbarAppearance()
1967pInfo->themes[theme].VScrollStyle = GX_SCROLLBAR_VERTICAL | GX_SCROLLBAR_RELATIVE_THUMB | GX_SCRO… in DefaultScrollbarAppearance()
1969 memset(&pInfo->themes[theme].HScrollAppearance, 0, sizeof(GX_SCROLLBAR_APPEARANCE)); in DefaultScrollbarAppearance()
1970 pInfo->themes[theme].HScrollAppearance.gx_scroll_width = 20; in DefaultScrollbarAppearance()
1971 pInfo->themes[theme].HScrollAppearance.gx_scroll_thumb_travel_min = 20; in DefaultScrollbarAppearance()
1972 pInfo->themes[theme].HScrollAppearance.gx_scroll_thumb_travel_max = 20; in DefaultScrollbarAppearance()
1973 pInfo->themes[theme].HScrollAppearance.gx_scroll_thumb_width = 18; in DefaultScrollbarAppearance()
1974 pInfo->themes[theme].HScrollAppearance.gx_scroll_thumb_color = GX_COLOR_ID_SCROLL_BUTTON; in DefaultScrollbarAppearance()
1975 pInfo->themes[theme].VScrollAppearance.gx_scroll_thumb_border_color = GX_COLOR_ID_SCROLL_BUTTON; in DefaultScrollbarAppearance()
1976 pInfo->themes[theme].HScrollAppearance.gx_scroll_button_color = GX_COLOR_ID_SCROLL_BUTTON; in DefaultScrollbarAppearance()
1977 pInfo->themes[theme].HScrollAppearance.gx_scroll_thumb_border_style = GX_STYLE_BORDER_THIN; in DefaultScrollbarAppearance()
1978pInfo->themes[theme].HScrollStyle = GX_SCROLLBAR_HORIZONTAL | GX_SCROLLBAR_RELATIVE_THUMB | GX_SC… in DefaultScrollbarAppearance()
1985 display_info *pInfo = &mDisplays[DisplayIndex]; in InitDisplayThemes() local
1986 pInfo->num_themes = 1; in InitDisplayThemes()
1987 pInfo->active_theme = DEFAULT_THEME; in InitDisplayThemes()
2001 DefaultScrollbarAppearance(pInfo, theme); in InitDisplayThemes()
2008 display_info *pInfo = &mDisplays[DisplayIndex]; in CreateDefaultResources() local
2009 CleanupThemeResources(pInfo, ThemeIndex); in CreateDefaultResources()
2011 pInfo->colorformat = GX_COLOR_FORMAT_565RGB; in CreateDefaultResources()
2016 pThemeHeader->name = pInfo->themes[ThemeIndex].theme_name; in CreateDefaultResources()
2017 pInfo->themes[ThemeIndex].SetFirstResourceInfo(pThemeHeader); in CreateDefaultResources()
2163 if (!pInfo->stable) in CreateDefaultResources()
2165 pInfo->stable = new string_table(); in CreateDefaultResources()
2166 pInfo->stable->Initialize(1, 1); in CreateDefaultResources()
3006 display_info *pInfo = &mDisplays[display_index]; in WriteDisplayInfo() local
3009 writer.WriteString("display_name", pInfo->name); in WriteDisplayInfo()
3010 writer.WriteInt("xres", pInfo->xres); in WriteDisplayInfo()
3011 writer.WriteInt("yres", pInfo->yres); in WriteDisplayInfo()
3012 writer.WriteInt("bits_per_pix", pInfo->bits_per_pix); in WriteDisplayInfo()
3013 writer.WriteBool("packed_format", pInfo->packed_format); in WriteDisplayInfo()
3014 writer.WriteBool("format_555", pInfo->format_555); in WriteDisplayInfo()
3015 writer.WriteBool("format_4444", pInfo->format_4444); in WriteDisplayInfo()
3016 writer.WriteBool("format_332", pInfo->format_332); in WriteDisplayInfo()
3017 writer.WriteBool("grayscale", pInfo->grayscale); in WriteDisplayInfo()
3018 writer.WriteBool("reverse_order", pInfo->reverse_order); in WriteDisplayInfo()
3019 writer.WriteBool("allocate_canvas", pInfo->allocate_canvas); in WriteDisplayInfo()
3020 writer.WriteBool("enabled", pInfo->enabled); in WriteDisplayInfo()
3021 …writer.WriteString("rotation_angle", ProjectConfigDlg::FindScreenRotationName(pInfo->rotation_angl… in WriteDisplayInfo()
3022 writer.WriteBool("default_map_format", pInfo->default_map_format); in WriteDisplayInfo()
3025 writer.WriteInt("num_themes", pInfo->num_themes); in WriteDisplayInfo()
3026 writer.WriteInt("active_theme", pInfo->active_theme); in WriteDisplayInfo()
3028 for (int theme = 0; theme < pInfo->num_themes; theme++) in WriteDisplayInfo()
3030 writer.WriteString("theme_name", pInfo->themes[theme].theme_name); in WriteDisplayInfo()
3031 writer.WriteBool("gen_color_table", pInfo->themes[theme].gen_color_table); in WriteDisplayInfo()
3032 writer.WriteBool("gen_font_table", pInfo->themes[theme].gen_font_table); in WriteDisplayInfo()
3033 writer.WriteBool("gen_pixelmap_table", pInfo->themes[theme].gen_pixelmap_table); in WriteDisplayInfo()
3034 writer.WriteBool("enabled", pInfo->themes[theme].enabled); in WriteDisplayInfo()
3035 writer.WriteBool("statically_defined", pInfo->themes[theme].statically_defined); in WriteDisplayInfo()
3038 WriteResources(writer, pInfo->themes[theme].GetFirstResourceInfo()); in WriteDisplayInfo()
3041 if (pInfo->themes[theme].palette) in WriteDisplayInfo()
3043 WriteThemePaletteInfo(writer, &pInfo->themes[theme]); in WriteDisplayInfo()
3057 WriteStringTable(writer, pInfo->stable); in WriteDisplayInfo()
3058 WriteScreenFlow(writer, pInfo->screenflow); in WriteDisplayInfo()
3060 widget_writer::WriteWidgetFolders(writer, this, display_index, pInfo->GetFirstChildFolder()); in WriteDisplayInfo()
3548 display_info *pInfo = &mDisplays[index]; in ReadWidgetFolders() local
3549 pInfo->SetFirstChildFolder(NULL); in ReadWidgetFolders()
3557 pInfo->SetFirstChildFolder(folder); in ReadWidgetFolders()
3559 widget_reader::ReadWidgets(reader, this, index, pInfo->GetFirstChildFolder()); in ReadWidgetFolders()
3885 display_info *pInfo = &mDisplays[DisplayIndex]; in ReadResources() local
3953 if (pInfo->themes[theme_index].GetFirstResourceInfo()) in ReadResources()
3955 previous = pInfo->themes[theme_index].GetFirstResourceInfo(); in ReadResources()
3964 pInfo->themes[theme_index].SetFirstResourceInfo(newres); in ReadResources()
3978 newres = pInfo->themes[theme_index].GetFirstResourceInfo(); in ReadResources()
3987 pThemeHeader->name = pInfo->themes[theme_index].theme_name; in ReadResources()
3988 pThemeHeader->next = pInfo->themes[theme_index].GetFirstResourceInfo(); in ReadResources()
3989 pInfo->themes[theme_index].SetFirstResourceInfo(pThemeHeader); in ReadResources()
4377 display_info *pInfo = &mDisplays[index]; in ReadDisplayInfo() local
4383 reader.ReadString("display_name", pInfo->name); in ReadDisplayInfo()
4384 reader.ReadInt("xres", pInfo->xres); in ReadDisplayInfo()
4385 reader.ReadInt("yres", pInfo->yres); in ReadDisplayInfo()
4390 if (pInfo->xres > GX_MAX_DISPLAY_RESOLUTION || pInfo->xres <= 0) in ReadDisplayInfo()
4392 pInfo->xres = 320; in ReadDisplayInfo()
4394 if (pInfo->yres > GX_MAX_DISPLAY_RESOLUTION || pInfo->yres <= 0) in ReadDisplayInfo()
4396 pInfo->yres = 240; in ReadDisplayInfo()
4399 reader.ReadInt("bits_per_pix", pInfo->bits_per_pix); in ReadDisplayInfo()
4403 reader.ReadBool("packed_format", pInfo->packed_format); in ReadDisplayInfo()
4404 reader.ReadBool("format_555", pInfo->format_555); in ReadDisplayInfo()
4405 reader.ReadBool("format_4444", pInfo->format_4444); in ReadDisplayInfo()
4406 reader.ReadBool("format_332", pInfo->format_332); in ReadDisplayInfo()
4407 reader.ReadBool("grayscale", pInfo->grayscale); in ReadDisplayInfo()
4408 reader.ReadBool("reverse_order", pInfo->reverse_order); in ReadDisplayInfo()
4409 reader.ReadBool("enabled", pInfo->enabled); in ReadDisplayInfo()
4413 pInfo->rotation_angle = ProjectConfigDlg::FindScreenRotationVal(string); in ReadDisplayInfo()
4415 reader.ReadBool("default_map_format", pInfo->default_map_format); in ReadDisplayInfo()
4422 pInfo->packed_format = FALSE; in ReadDisplayInfo()
4423 pInfo->format_555 = FALSE; in ReadDisplayInfo()
4424 pInfo->format_332 = FALSE; in ReadDisplayInfo()
4425 pInfo->reverse_order = FALSE; in ReadDisplayInfo()
4428 if (!reader.ReadBool("allocate_canvas", pInfo->allocate_canvas)) in ReadDisplayInfo()
4431 pInfo->allocate_canvas = TRUE; in ReadDisplayInfo()
4435 switch(pInfo->bits_per_pix) in ReadDisplayInfo()
4438 pInfo->colorformat = GX_COLOR_FORMAT_MONOCHROME; in ReadDisplayInfo()
4446 pInfo->colorformat = GX_COLOR_FORMAT_4BIT_GRAY; in ReadDisplayInfo()
4450 if (pInfo->format_332) in ReadDisplayInfo()
4452 pInfo->colorformat = GX_COLOR_FORMAT_8BIT_PACKED_PIXEL; in ReadDisplayInfo()
4456 pInfo->colorformat = GX_COLOR_FORMAT_8BIT_PALETTE; in ReadDisplayInfo()
4461 if (pInfo->packed_format) in ReadDisplayInfo()
4463 pInfo->colorformat = GX_COLOR_FORMAT_24RGB; in ReadDisplayInfo()
4467 pInfo->colorformat = GX_COLOR_FORMAT_24XRGB; in ReadDisplayInfo()
4472 if (pInfo->reverse_order) in ReadDisplayInfo()
4474 pInfo->colorformat = GX_COLOR_FORMAT_32BGRA; in ReadDisplayInfo()
4478 pInfo->colorformat = GX_COLOR_FORMAT_32ARGB; in ReadDisplayInfo()
4483 pInfo->bits_per_pix = 16; in ReadDisplayInfo()
4485 if (pInfo->format_4444) in ReadDisplayInfo()
4487 if (pInfo->reverse_order) in ReadDisplayInfo()
4489 pInfo->colorformat = GX_COLOR_FORMAT_4444BGRA; in ReadDisplayInfo()
4493 pInfo->colorformat = GX_COLOR_FORMAT_4444ARGB; in ReadDisplayInfo()
4496 else if (pInfo->format_555) in ReadDisplayInfo()
4498 if (pInfo->reverse_order) in ReadDisplayInfo()
4500 pInfo->colorformat = GX_COLOR_FORMAT_5551BGRX; in ReadDisplayInfo()
4504 pInfo->colorformat = GX_COLOR_FORMAT_1555XRGB; in ReadDisplayInfo()
4509 if (pInfo->reverse_order) in ReadDisplayInfo()
4511 pInfo->colorformat = GX_COLOR_FORMAT_565BGR; in ReadDisplayInfo()
4515 pInfo->colorformat = GX_COLOR_FORMAT_565RGB; in ReadDisplayInfo()
4520 CleanupDisplayResources(pInfo); in ReadDisplayInfo()
4524 reader.ReadInt("num_themes", pInfo->num_themes, 1); in ReadDisplayInfo()
4526 if (!reader.ReadInt("active_theme", pInfo->active_theme)) in ReadDisplayInfo()
4528 pInfo->active_theme = DEFAULT_THEME; in ReadDisplayInfo()
4531 if (pInfo->num_themes <= 0 || pInfo->num_themes > MAX_THEMES) in ReadDisplayInfo()
4534 pInfo->num_themes = 1; in ReadDisplayInfo()
4535 pInfo->active_theme = DEFAULT_THEME; in ReadDisplayInfo()
4540 if (pInfo->active_theme < 0 || pInfo->active_theme >= pInfo->num_themes) in ReadDisplayInfo()
4543 pInfo->active_theme = DEFAULT_THEME; in ReadDisplayInfo()
4546 for (theme = 0; theme < pInfo->num_themes; theme++) in ReadDisplayInfo()
4548 DefaultScrollbarAppearance(pInfo, theme); in ReadDisplayInfo()
4550 reader.ReadString("theme_name", pInfo->themes[theme].theme_name); in ReadDisplayInfo()
4552 … if (!reader.ReadBool("gen_color_table", pInfo->themes[theme].gen_color_table)) in ReadDisplayInfo()
4554 pInfo->themes[theme].gen_color_table = TRUE; in ReadDisplayInfo()
4557 if (!reader.ReadBool("gen_font_table", pInfo->themes[theme].gen_font_table)) in ReadDisplayInfo()
4559 pInfo->themes[theme].gen_font_table = TRUE; in ReadDisplayInfo()
4562 … if (!reader.ReadBool("gen_pixelmap_table", pInfo->themes[theme].gen_pixelmap_table)) in ReadDisplayInfo()
4564 pInfo->themes[theme].gen_pixelmap_table = TRUE; in ReadDisplayInfo()
4567 if (!reader.ReadBool("enabled", pInfo->themes[theme].enabled)) in ReadDisplayInfo()
4569 pInfo->themes[theme].enabled = TRUE; in ReadDisplayInfo()
4572 … if (!reader.ReadBool("statically_defined", pInfo->themes[theme].statically_defined)) in ReadDisplayInfo()
4574 pInfo->themes[theme].statically_defined = TRUE; in ReadDisplayInfo()
4587 ReadThemePaletteInfo(reader, &pInfo->themes[theme]); in ReadDisplayInfo()
4602 …res_info *parent = FindResourceFolder(pInfo->themes[theme].GetFirstResourceInfo(), RES_TYPE_FOLDER… in ReadDisplayInfo()
4603 … COLOR_RECORD *default_record = ProjectConfigDlg::GetDefaultColorTable(pInfo->colorformat); in ReadDisplayInfo()
4619pInfo->themes[theme].palette, in ReadDisplayInfo()
4620pInfo->themes[theme].palette_predefined, in ReadDisplayInfo()
4621pInfo->colorformat); in ReadDisplayInfo()
4664 ReadStringTable(reader, pInfo); in ReadDisplayInfo()
4668 ReadStringTable(reader, pInfo); in ReadDisplayInfo()
5696 folder_info *pInfo = mDisplays[Display].GetFirstChildFolder(); in FindParentInfo() local
5697 found = FindParentInfo(pInfo, child); in FindParentInfo()