MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / DrawMapRect

Method DrawMapRect

roomedit/source/mapdc.cpp:576–592  ·  view source on GitHub ↗

///////////////////////////////////////////////////// TMapDC ------ draw a rectangle on the screen from map coords

Source from the content-addressed store, hash-verified

574// ------
575// draw a rectangle on the screen from map coords
576void
577TMapDC::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//////////////////////////////////////////////////////////

Callers 2

HighlightObjectFunction · 0.80
DrawStretchSelBoxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected