Mercurial > MadButterfly
diff examples/calculator/main.c @ 283:7d106e4ef66d
Fix the compilation error of the inkscape
author | wycc@wycc-desktop |
---|---|
date | Sat, 31 Jan 2009 13:01:07 +0800 |
parents | c8b6ca46950b |
children | 331467b8e778 |
line wrap: on
line diff
--- a/examples/calculator/main.c Sat Jan 31 12:54:13 2009 +0800 +++ b/examples/calculator/main.c Sat Jan 31 13:01:07 2009 +0800 @@ -66,8 +66,8 @@ rdman = X_MB_rdman(calc_data->rt); sprintf(buf, "%d%s", num, suffix); - sh_text_set_text(calc_data->code->screen_text, buf); - rdman_shape_changed(rdman, calc_data->code->screen_text); + sh_text_set_text(calc_data->code->screen_text_u, buf); + rdman_shape_changed(rdman, calc_data->code->screen_text_u); if(op == 'n') sprintf(buf, "None"); @@ -144,7 +144,7 @@ switch(evt->type) { case EVT_MOUSE_BUT_PRESS: - compute(calc_data, (coord_t *)evt->cur_tgt); + compute(calc_data, (coord_t *)evt->cur_tgt->obj); break; } }