Changeset 959ef5d in mainline


Ignore:
Timestamp:
2019-11-19T09:20:51Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf22cb78
Parents:
48f7e47
git-author:
Jiri Svoboda <jiri@…> (2019-11-18 19:20:48)
git-committer:
Jiri Svoboda <jiri@…> (2019-11-19 09:20:51)
Message:

Change wording

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/terminal/terminal.c

    r48f7e47 r959ef5d  
    266266    sysarg_t sx, sysarg_t sy)
    267267{
    268         bool damage = false;
     268        bool update = false;
    269269
    270270        sysarg_t front_col;
     
    286286                    front_visibility);
    287287                term_update_char(term, pixelmap, sx, sy, back_col, back_row);
    288                 damage = true;
     288                update = true;
    289289        }
    290290
     
    293293                term_update_char(term, pixelmap, sx, sy, back_col, back_row);
    294294                term_update_char(term, pixelmap, sx, sy, front_col, front_row);
    295                 damage = true;
    296         }
    297 
    298         return damage;
     295                update = true;
     296        }
     297
     298        return update;
    299299}
    300300
     
    315315        pixelmap.data = alloc.pixels;
    316316
    317         bool damage = false;
     317        bool update = false;
    318318        sysarg_t sx = 0/*term->widget.hpos*/;
    319319        sysarg_t sy = 0/*term->widget.vpos*/;
    320320
    321321        if (term_update_scroll(term, &pixelmap, sx, sy)) {
    322                 damage = true;
     322                update = true;
    323323        } else {
    324324                for (sysarg_t y = 0; y < term->rows; y++) {
     
    348348                                if (update) {
    349349                                        term_update_char(term, &pixelmap, sx, sy, x, y);
    350                                         damage = true;
     350                                        update = true;
    351351                                }
    352352                        }
     
    355355
    356356        if (term_update_cursor(term, &pixelmap, sx, sy))
    357                 damage = true;
    358 
    359         (void) damage; // XXX
    360 
    361         fibril_mutex_unlock(&term->mtx);
    362 }
    363 
    364 static void term_damage(terminal_t *term)
     357                update = true;
     358
     359        (void) update; // XXX
     360
     361        fibril_mutex_unlock(&term->mtx);
     362}
     363
     364static void term_repaint(terminal_t *term)
    365365{
    366366        pixelmap_t pixelmap;
     
    800800        getterm(vc, "/app/bdsh");
    801801
    802         term_damage(term);
     802        term_repaint(term);
    803803
    804804        *rterm = term;
Note: See TracChangeset for help on using the changeset viewer.