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

Method DrawMapLine

roomedit/source/mapdc.cpp:552–569  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

550// ------
551// draw a line on the screen from map coords
552void
553TMapDC::DrawMapLine(SHORT mapXstart, SHORT mapYstart, SHORT mapXend, SHORT mapYend)
554{
555 // LogMessage ("DrawMapLine(%d,%d,%d,%d)\n", mapXstart, mapYstart, mapXend, mapYend);
556#ifndef WINDOWS_CLIPPING
557 if ( ! IS_VISIBLE_MAP_RECT(mapXstart, mapYstart, mapXend, mapYend) )
558 return;
559#endif
560
561#ifdef WINDOWS_SCALING
562 MoveTo (mapXstart, mapYstart) ;
563 LineTo (mapXend, mapYend);
564#else
565 MoveTo (SCREENX(mapXstart), SCREENY(mapYstart)) ;
566 LineTo (SCREENX(mapXend), SCREENY(mapYend));
567#endif
568
569}
570
571
572//////////////////////////////////////////////////////////

Callers 1

HighlightObjectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected