… | |
… | |
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 |