… | |
… | |
825 | #define Col2Pixel(col) ((int32_t)Width2Pixel(col)) |
825 | #define Col2Pixel(col) ((int32_t)Width2Pixel(col)) |
826 | #define Row2Pixel(row) ((int32_t)Height2Pixel(row)) |
826 | #define Row2Pixel(row) ((int32_t)Height2Pixel(row)) |
827 | #define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) |
827 | #define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) |
828 | #define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) |
828 | #define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) |
829 | |
829 | |
830 | #define TermWin_TotalWidth() ((int32_t)width) |
830 | #define TermWin_TotalWidth() ((int32_t)this->width) |
831 | #define TermWin_TotalHeight() ((int32_t)height) |
831 | #define TermWin_TotalHeight() ((int32_t)this->height) |
|
|
832 | |
|
|
833 | #define LINENO(n) (((n) + term_start + total_rows) % total_rows) |
|
|
834 | #define ROW(n) (save [LINENO (n)]) |
832 | |
835 | |
833 | /* how to build & extract colors and attributes */ |
836 | /* how to build & extract colors and attributes */ |
834 | #define GET_BASEFG(x) (((x) & RS_fgMask)) |
837 | #define GET_BASEFG(x) (((x) & RS_fgMask)) |
835 | #define GET_BASEBG(x) (((x) & RS_bgMask)>>Color_Bits) |
838 | #define GET_BASEBG(x) (((x) & RS_bgMask)>>Color_Bits) |
836 | #ifndef NO_BRIGHTCOLOR |
839 | #ifndef NO_BRIGHTCOLOR |
… | |
… | |
1496 | scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE); |
1499 | scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE); |
1497 | } |
1500 | } |
1498 | |
1501 | |
1499 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs); |
1502 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs); |
1500 | void scr_blank_screen_mem (line_t &l, rend_t efs); |
1503 | void scr_blank_screen_mem (line_t &l, rend_t efs); |
1501 | int scr_scroll_text (int row1, int row2, int count, int spec); |
1504 | int scr_scroll_text (int row1, int row2, int count); |
1502 | void scr_reset (); |
1505 | void scr_reset (); |
1503 | void scr_reset_realloc (); |
1506 | void scr_reset_realloc (); |
1504 | void scr_release (); |
1507 | void scr_release (); |
1505 | void scr_clear (bool really = false); |
1508 | void scr_clear (bool really = false); |
1506 | void scr_refresh (unsigned char refresh_type); |
1509 | void scr_refresh (unsigned char refresh_type); |