Changeset 670cfcf in mainline
- Timestamp:
- 2019-11-21T16:24:16Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 38e5f36c
- Parents:
- 8b1ce56
- Location:
- uspace/app/terminal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/terminal/terminal.c
r8b1ce56 r670cfcf 177 177 { 178 178 gfx_rect_t rect; 179 gfx_rect_t nupdate; 179 180 180 181 rect.p0.x = x; … … 183 184 rect.p1.y = y + h; 184 185 185 (void) gfx_bitmap_render(term->bmp, &rect, NULL); 186 gfx_rect_envelope(&term->update, &rect, &nupdate); 187 term->update = nupdate; 186 188 } 187 189 … … 357 359 update = true; 358 360 359 (void) update; // XXX 361 if (update) { 362 (void) gfx_bitmap_render(term->bmp, &term->update, NULL); 363 364 term->update.p0.x = 0; 365 term->update.p0.y = 0; 366 term->update.p1.x = 0; 367 term->update.p1.y = 0; 368 } 360 369 361 370 fibril_mutex_unlock(&term->mtx); … … 802 811 term_repaint(term); 803 812 813 term->update.p0.x = 0; 814 term->update.p0.y = 0; 815 term->update.p1.x = 0; 816 term->update.p1.y = 0; 817 804 818 *rterm = term; 805 819 return EOK; -
uspace/app/terminal/terminal.h
r8b1ce56 r670cfcf 43 43 #include <gfx/bitmap.h> 44 44 #include <gfx/context.h> 45 #include <gfx/coord.h> 45 46 #include <io/chargrid.h> 46 47 #include <io/con_srv.h> … … 58 59 sysarg_t w; 59 60 sysarg_t h; 61 gfx_rect_t update; 60 62 61 63 fibril_mutex_t mtx;
Note:
See TracChangeset
for help on using the changeset viewer.