vc: propagate "viewed as bool" from screenpos up
viewed is used as a flag, i.e. bool. So treat is as such in most of the places. vcs_vc is handled in the next patch. Note: the last parameter of invert_screen was misnamed in the declaration since 1.1.92. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200818085706.12163-3-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
a5c6bd806d
commit
b8209f694f
@@ -34,11 +34,11 @@ extern unsigned char default_grn[];
|
||||
extern unsigned char default_blu[];
|
||||
|
||||
extern unsigned short *screen_pos(const struct vc_data *vc, int w_offset,
|
||||
int viewed);
|
||||
bool viewed);
|
||||
extern u16 screen_glyph(const struct vc_data *vc, int offset);
|
||||
extern u32 screen_glyph_unicode(const struct vc_data *vc, int offset);
|
||||
extern void complement_pos(struct vc_data *vc, int offset);
|
||||
extern void invert_screen(struct vc_data *vc, int offset, int count, int shift);
|
||||
extern void invert_screen(struct vc_data *vc, int offset, int count, bool viewed);
|
||||
|
||||
extern void getconsxy(const struct vc_data *vc, unsigned char xy[static 2]);
|
||||
extern void putconsxy(struct vc_data *vc, unsigned char xy[static const 2]);
|
||||
@@ -49,7 +49,7 @@ extern void vcs_scr_updated(struct vc_data *vc);
|
||||
|
||||
extern int vc_uniscr_check(struct vc_data *vc);
|
||||
extern void vc_uniscr_copy_line(const struct vc_data *vc, void *dest,
|
||||
int viewed,
|
||||
bool viewed,
|
||||
unsigned int row, unsigned int col,
|
||||
unsigned int nr);
|
||||
|
||||
|
Reference in New Issue
Block a user