add background pattern specification.
@@ -1043,6 +1043,9 @@ | ||
1043 | 1043 | static RECT r0 = {{400, 100, 700+7, 200+30}}; |
1044 | 1044 | static RECT r1 = {{100, 100, 300+7, 300+30}}; |
1045 | 1045 | static RECT r2 = {{400, 300, 800+7, 400+30}}; |
1046 | + static PAT white = {{0, 16, 16, 0x10ffffff, 0, FILL100}}; | |
1047 | + static PAT bgpat0; | |
1048 | + static PAT *bgpat; | |
1046 | 1049 | TC *title0 = NULL, *title1 = NULL; |
1047 | 1050 | W err; |
1048 | 1051 | WID wid; |
@@ -1058,6 +1061,13 @@ | ||
1058 | 1061 | registerexternalwindow_t *registerexternalwindow; |
1059 | 1062 | externalbbswindow_t *externalbbswindow; |
1060 | 1063 | |
1064 | + err = wget_inf(WI_PANELBACK, &bgpat0, sizeof(bgpat0)); | |
1065 | + if (err != sizeof(bgpat0)) { | |
1066 | + bgpat = &white; | |
1067 | + } else { | |
1068 | + bgpat = &bgpat0; | |
1069 | + } | |
1070 | + | |
1061 | 1071 | retriever = sbjtretriever_new(); |
1062 | 1072 | if (retriever == NULL) { |
1063 | 1073 | DP_ER("sbjtretriever_new error", 0); |
@@ -1080,7 +1090,7 @@ | ||
1080 | 1090 | DP_ER("bchanl_subjecthash_new error", 0); |
1081 | 1091 | goto error_subjecthash; |
1082 | 1092 | } |
1083 | - subjectoptionwindow = bchanlhmi_newsubjectoptionwindow(hmi, &p0, subjectwindow, NULL, NULL, BCHANL_DBX_TB_SBJTOPT_FLT, BCHANL_DBX_WS_SBJTOPT_ODR, BCHANL_DBX_WS_SBJTOPT_ODRBY); | |
1093 | + subjectoptionwindow = bchanlhmi_newsubjectoptionwindow(hmi, &p0, subjectwindow, NULL, bgpat, BCHANL_DBX_TB_SBJTOPT_FLT, BCHANL_DBX_WS_SBJTOPT_ODR, BCHANL_DBX_WS_SBJTOPT_ODRBY); | |
1084 | 1094 | if (subjectoptionwindow == NULL) { |
1085 | 1095 | DP_ER("bchanlhmi_newsubjectoptionwindow", 0); |
1086 | 1096 | goto error_subjectoptionwindow; |
@@ -1092,7 +1102,7 @@ | ||
1092 | 1102 | goto error_bbsmenuwindow; |
1093 | 1103 | } |
1094 | 1104 | gid = bbsmenuwindow_getGID(bbsmenuwindow); |
1095 | - registerexternalwindow = bchanlhmi_newregisterexternalwindow(hmi, &p0, 0, NULL, NULL); | |
1105 | + registerexternalwindow = bchanlhmi_newregisterexternalwindow(hmi, &p0, 0, NULL, bgpat); | |
1096 | 1106 | if (registerexternalwindow == NULL) { |
1097 | 1107 | DP_ER("bchanlhmi_newregisterexternalwindow error", 0); |
1098 | 1108 | goto error_registerexternalwindow; |