Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7405
b: refs/heads/master
c: 414edcd
h: refs/heads/master
i:
  7403: b1b7208
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Sep 7, 2005
1 parent e0f216c commit 64e2c4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eed74dfcd48101d259012ac08d29061eea500249
refs/heads/master: 414edcd32aa54bad8827e7c74cace168006c5fab
17 changes: 11 additions & 6 deletions trunk/drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,21 +434,25 @@ void invert_screen(struct vc_data *vc, int offset, int count, int viewed)
/* used by selection: complement pointer position */
void complement_pos(struct vc_data *vc, int offset)
{
static unsigned short *p;
static int old_offset = -1;
static unsigned short old;
static unsigned short oldx, oldy;

WARN_CONSOLE_UNLOCKED();

if (p) {
scr_writew(old, p);
if (old_offset != -1 && old_offset >= 0 &&
old_offset < vc->vc_screenbuf_size) {
scr_writew(old, screenpos(vc, old_offset, 1));
if (DO_UPDATE(vc))
vc->vc_sw->con_putc(vc, old, oldy, oldx);
}
if (offset == -1)
p = NULL;
else {

old_offset = offset;

if (offset != -1 && offset >= 0 &&
offset < vc->vc_screenbuf_size) {
unsigned short new;
unsigned short *p;
p = screenpos(vc, offset, 1);
old = scr_readw(p);
new = old ^ vc->vc_complement_mask;
Expand All @@ -459,6 +463,7 @@ void complement_pos(struct vc_data *vc, int offset)
vc->vc_sw->con_putc(vc, new, oldy, oldx);
}
}

}

static void insert_char(struct vc_data *vc, unsigned int nr)
Expand Down

0 comments on commit 64e2c4b

Please sign in to comment.