Rev 6470 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6470 | Rev 6524 | ||
---|---|---|---|
Line 64... | Line 64... | ||
64 | "d"(st->text), |
64 | "d"(st->text), |
65 | "D"(st->bg_color) |
65 | "D"(st->bg_color) |
66 | :); |
66 | :); |
67 | } |
67 | } |
Line -... | Line 68... | ||
- | 68 | ||
- | 69 | inline void gui_add_statictext(kolibri_window *wnd, statictext* st) |
|
- | 70 | { |
|
- | 71 | kolibri_window_add_element(wnd, KOLIBRI_STATICTEXT, st); |
|
- | 72 | } |
|
- | 73 | ||
- | 74 | ||
68 | 75 | ||
69 | staticnum* kolibri_staticnum(staticnum* st, uint32_t xy, int32_t width, int16_t number, encoding_t enc, int size, color_t font, color_t bg) |
76 | staticnum* kolibri_staticnum(staticnum* st, uint32_t xy, int32_t width, int16_t number, encoding_t enc, int size, color_t font, color_t bg) |
70 | { |
77 | { |
71 | st->start_xy = xy; |
78 | st->start_xy = xy; |
72 | st->number = number; |
79 | st->number = number; |
Line 95... | Line 102... | ||
95 | staticnum* kolibri_new_staticnum_def(uint32_t xy, int32_t width, int32_t number) |
102 | staticnum* kolibri_new_staticnum_def(uint32_t xy, int32_t width, int32_t number) |
96 | { |
103 | { |
97 | return kolibri_new_staticnum(xy, width, number, cp866, 0, kolibri_color_table.color_work_text, 0); |
104 | return kolibri_new_staticnum(xy, width, number, cp866, 0, kolibri_color_table.color_work_text, 0); |
98 | } |
105 | } |
Line -... | Line 106... | ||
- | 106 | ||
- | 107 | inline void gui_add_staticnum(kolibri_window *wnd, staticnum* sn) |
|
- | 108 | { |
|
- | 109 | kolibri_window_add_element(wnd, KOLIBRI_STATICNUM, sn); |
|
- | 110 | } |
|
- | 111 | ||
99 | 112 | ||
100 | __attribute__((__stdcall__)) |
113 | __attribute__((__stdcall__)) |
101 | void staticnum_draw(staticnum *st) |
114 | void staticnum_draw(staticnum *st) |
102 | { |
115 | { |
103 | register uint32_t fmt; |
116 | register uint32_t fmt; |