diff options
Diffstat (limited to 'payloads/libpayload/curses/PDCurses-3.4/sdl1/pdcdisp.c')
-rw-r--r-- | payloads/libpayload/curses/PDCurses-3.4/sdl1/pdcdisp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/sdl1/pdcdisp.c b/payloads/libpayload/curses/PDCurses-3.4/sdl1/pdcdisp.c index 3712e6622e..fe463352d6 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/sdl1/pdcdisp.c +++ b/payloads/libpayload/curses/PDCurses-3.4/sdl1/pdcdisp.c @@ -62,7 +62,7 @@ void PDC_update_rects(void) { if (rectcount) { - /* if the maximum number of rects has been reached, we're + /* if the maximum number of rects has been reached, we're probably better off doing a full screen update */ if (rectcount == MAXRECT) @@ -102,7 +102,7 @@ static void _set_attr(chtype ch) if (newfg != foregr) { - SDL_SetPalette(pdc_font, SDL_LOGPAL, + SDL_SetPalette(pdc_font, SDL_LOGPAL, pdc_color + newfg, pdc_flastc, 1); foregr = newfg; } @@ -151,8 +151,8 @@ void PDC_gotoyx(int row, int col) if (!SP->visibility) return; - /* draw a new cursor by overprinting the existing character in - reverse, either the full cell (when visibility == 2) or the + /* draw a new cursor by overprinting the existing character in + reverse, either the full cell (when visibility == 2) or the lowest quarter of it (when visibility == 1) */ ch = curscr->_y[row][col] ^ A_REVERSE; @@ -270,7 +270,7 @@ void PDC_transform_line(int lineno, int x, int len, const chtype *srcp) else if (lastrect.y != dest.y) uprect[rectcount++] = dest; - } + } else uprect[rectcount++] = dest; |