Mercurial > MadButterfly
comparison nodejs/mbapp.js @ 874:ec8d7e9c9642 abs_n_rel_center
Decorate mb_rt created by mb_rt_with_win()
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 24 Sep 2010 23:47:01 +0800 |
parents | 881efcd8a18f |
children | 6c8e4e1f3a39 |
comparison
equal
deleted
inserted
replaced
873:881efcd8a18f | 874:ec8d7e9c9642 |
---|---|
146 | 146 |
147 if(typeof display == "undefined" || typeof win == "undefined") | 147 if(typeof display == "undefined" || typeof win == "undefined") |
148 throw "Invalid argument"; | 148 throw "Invalid argument"; |
149 | 149 |
150 mb_rt = this.mb_rt = new mbfly.mb_rt_with_win(display, win); | 150 mb_rt = this.mb_rt = new mbfly.mb_rt_with_win(display, win); |
151 _decorate_mb_rt(mb_rt); | |
151 background = mb_rt.rect_new(0, 0, 720, 480, 0, 0); | 152 background = mb_rt.rect_new(0, 0, 720, 480, 0, 0); |
152 paint = mb_rt.paint_color_new(1, 1, 1, 1); | 153 paint = mb_rt.paint_color_new(1, 1, 1, 1); |
153 paint.fill(background); | 154 paint.fill(background); |
154 mb_rt.root.add_shape(background); | 155 mb_rt.root.add_shape(background); |
155 | 156 |