///////////////////////////////////////////////////// TMapDC ------ draw a rectangle on the screen from map coords
| 574 | // ------ |
| 575 | // draw a rectangle on the screen from map coords |
| 576 | void |
| 577 | TMapDC::DrawMapRect(SHORT mapXstart, SHORT mapYstart, SHORT mapXend, SHORT mapYend) |
| 578 | { |
| 579 | // LogMessage ("DrawMapRect(%d,%d,%d,%d)\n", mapXstart, mapYstart, mapXend, mapYend); |
| 580 | #ifndef WINDOWS_CLIPPING |
| 581 | if ( ! IS_VISIBLE_MAP_RECT(mapXstart, mapYstart, mapXend, mapYend) ) |
| 582 | return; |
| 583 | #endif |
| 584 | |
| 585 | #ifdef WINDOWS_SCALING |
| 586 | Rectangle (mapXstart, mapYstart, |
| 587 | mapXend, mapYend); |
| 588 | #else |
| 589 | Rectangle (SCREENX(mapXstart), SCREENY(mapYstart), |
| 590 | SCREENX(mapXend), SCREENY(mapYend)); |
| 591 | #endif |
| 592 | } |
| 593 | |
| 594 | |
| 595 | ////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected