• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂498 (tree)
時間2012-06-17 17:16:23
作者ornse01

Log Message

add background pattern specification.

Change Summary

差異

--- bchanl/trunk/src/main.c (revision 497)
+++ bchanl/trunk/src/main.c (revision 498)
@@ -1043,6 +1043,9 @@
10431043 static RECT r0 = {{400, 100, 700+7, 200+30}};
10441044 static RECT r1 = {{100, 100, 300+7, 300+30}};
10451045 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;
10461049 TC *title0 = NULL, *title1 = NULL;
10471050 W err;
10481051 WID wid;
@@ -1058,6 +1061,13 @@
10581061 registerexternalwindow_t *registerexternalwindow;
10591062 externalbbswindow_t *externalbbswindow;
10601063
1064+ err = wget_inf(WI_PANELBACK, &bgpat0, sizeof(bgpat0));
1065+ if (err != sizeof(bgpat0)) {
1066+ bgpat = &white;
1067+ } else {
1068+ bgpat = &bgpat0;
1069+ }
1070+
10611071 retriever = sbjtretriever_new();
10621072 if (retriever == NULL) {
10631073 DP_ER("sbjtretriever_new error", 0);
@@ -1080,7 +1090,7 @@
10801090 DP_ER("bchanl_subjecthash_new error", 0);
10811091 goto error_subjecthash;
10821092 }
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);
10841094 if (subjectoptionwindow == NULL) {
10851095 DP_ER("bchanlhmi_newsubjectoptionwindow", 0);
10861096 goto error_subjectoptionwindow;
@@ -1092,7 +1102,7 @@
10921102 goto error_bbsmenuwindow;
10931103 }
10941104 gid = bbsmenuwindow_getGID(bbsmenuwindow);
1095- registerexternalwindow = bchanlhmi_newregisterexternalwindow(hmi, &p0, 0, NULL, NULL);
1105+ registerexternalwindow = bchanlhmi_newregisterexternalwindow(hmi, &p0, 0, NULL, bgpat);
10961106 if (registerexternalwindow == NULL) {
10971107 DP_ER("bchanlhmi_newregisterexternalwindow error", 0);
10981108 goto error_registerexternalwindow;
Show on old repository browser