• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂496 (tree)
時間2012-06-17 17:15:13
作者ornse01

Log Message

fix background pattern.

Change Summary

差異

--- bchanf/trunk/src/tools/hmi_generator.rb (revision 495)
+++ bchanf/trunk/src/tools/hmi_generator.rb (revision 496)
@@ -1374,6 +1374,7 @@
13741374 end
13751375 def generate_draw_in_draw(main_name, window_name)
13761376 script = <<-EOS
1377+ gset_chc(window->gid, 0x10000000, -1);
13771378 gdra_stp(window->gid, <%= self.rect_left() %>, <%= self.rect_bottom() %>, (TC[]){<%= self.text_array() %>}, <%= self.text_array_length() %>, G_STORE);
13781379 EOS
13791380
@@ -1985,6 +1986,11 @@
19851986 window->r.c.right = p->x + <%= self.get_window_width() %>;
19861987 window->r.c.bottom = p->y + <%= self.get_window_height() %>;
19871988 <%- end -%>
1989+ if (bgpat != NULL) {
1990+ window->bgpat = *bgpat;
1991+ } else {
1992+ window->bgpat = (PAT){{0, 16, 16, 0x10ffffff, 0, FILL100}};
1993+ }
19881994 <%- if self.is_attr_scrollable() -%>
19891995 err = hmi_windowscroll_initialize(&window->wscr, window->wid);
19901996 if (err < 0) {
Show on old repository browser