… | |
… | |
1443 | void set_widthheight (unsigned int newwidth, unsigned int newheight); |
1443 | void set_widthheight (unsigned int newwidth, unsigned int newheight); |
1444 | void get_window_origin (int &x, int &y); |
1444 | void get_window_origin (int &x, int &y); |
1445 | |
1445 | |
1446 | // screen.C |
1446 | // screen.C |
1447 | |
1447 | |
|
|
1448 | bool option (uint8_t opt) const NOTHROW |
|
|
1449 | { |
|
|
1450 | return options[opt >> 3] & (1 << (opt & 7)); |
|
|
1451 | } |
|
|
1452 | |
|
|
1453 | void set_option (uint8_t opt, bool set = true) NOTHROW; |
|
|
1454 | |
1448 | int fgcolor_of (rend_t r) const NOTHROW |
1455 | int fgcolor_of (rend_t r) const NOTHROW |
1449 | { |
1456 | { |
1450 | int base = GET_BASEFG (r); |
1457 | int base = GET_BASEFG (r); |
1451 | #ifndef NO_BRIGHTCOLOR |
1458 | #ifndef NO_BRIGHTCOLOR |
1452 | if (r & RS_Bold |
1459 | if (r & RS_Bold |
… | |
… | |
1470 | && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR)) |
1477 | && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR)) |
1471 | base += minBrightCOLOR - minCOLOR; |
1478 | base += minBrightCOLOR - minCOLOR; |
1472 | #endif |
1479 | #endif |
1473 | return base; |
1480 | return base; |
1474 | } |
1481 | } |
1475 | |
|
|
1476 | bool option (uint8_t opt) const NOTHROW |
|
|
1477 | { |
|
|
1478 | return options[opt >> 3] & (1 << (opt & 7)); |
|
|
1479 | } |
|
|
1480 | |
|
|
1481 | void set_option (uint8_t opt, bool set = true) NOTHROW; |
|
|
1482 | |
1482 | |
1483 | // modifies first argument(!) |
1483 | // modifies first argument(!) |
1484 | void tt_paste (char *data, unsigned int len) NOTHROW; |
1484 | void tt_paste (char *data, unsigned int len) NOTHROW; |
1485 | void paste (char *data, unsigned int len) NOTHROW; |
1485 | void paste (char *data, unsigned int len) NOTHROW; |
1486 | void scr_alloc () NOTHROW; |
1486 | void scr_alloc () NOTHROW; |