Changeset 04803bf in mainline for uspace/lib/c/generic/io/screenbuffer.c
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
uspace/lib/c/generic/io/screenbuffer.c (moved) (moved from uspace/srv/console/screenbuffer.c ) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/screenbuffer.c
rb50b5af2 r04803bf 33 33 */ 34 34 35 #include <screenbuffer.h>36 35 #include <io/style.h> 36 #include <io/screenbuffer.h> 37 37 #include <malloc.h> 38 38 #include <unistd.h> … … 67 67 * 68 68 */ 69 screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, size_t size_x, size_t size_y) 69 screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, sysarg_t size_x, 70 sysarg_t size_y) 70 71 { 71 72 scr->buffer = (keyfield_t *) malloc(sizeof(keyfield_t) * size_x * size_y); … … 109 110 * 110 111 */ 111 void screenbuffer_clear_line(screenbuffer_t *scr, s ize_t line)112 void screenbuffer_clear_line(screenbuffer_t *scr, sysarg_t line) 112 113 { 113 s ize_t x;114 sysarg_t x; 114 115 115 116 for (x = 0; x < scr->size_x; x++) { … … 140 141 * 141 142 */ 142 void screenbuffer_goto(screenbuffer_t *scr, s ize_t x, size_t y)143 void screenbuffer_goto(screenbuffer_t *scr, sysarg_t x, sysarg_t y) 143 144 { 144 145 scr->position_x = x % scr->size_x; … … 166 167 * 167 168 */ 168 void screenbuffer_set_color(screenbuffer_t *scr, uint8_t fg_color, uint8_t bg_color, uint8_t flags) 169 void screenbuffer_set_color(screenbuffer_t *scr, uint8_t fg_color, 170 uint8_t bg_color, uint8_t flags) 169 171 { 170 172 scr->attrs.t = at_idx; … … 181 183 * 182 184 */ 183 void screenbuffer_set_rgb_color(screenbuffer_t *scr, uint32_t fg_color, uint32_t bg_color) 185 void screenbuffer_set_rgb_color(screenbuffer_t *scr, uint32_t fg_color, 186 uint32_t bg_color) 184 187 { 185 188 scr->attrs.t = at_rgb;
Note:
See TracChangeset
for help on using the changeset viewer.
