MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / SquareX

Function SquareX

xscreen.cpp:557–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555// "square". This rounds the higher value down and checks certain conditions.
556
557void SquareX(int *x, int *y, flag fForce)
558{
559 // Unless really want to force a square, realize that some charts look
560 // better rectangular.
561 if ((!fForce && !fSquare) || gi.nMode == gGrid || fMap)
562 return;
563 if (*x > *y)
564 *x = *y;
565 else
566 *y = *x;
567 if (fSidebar) // Take into account chart's sidebar, if any.
568 *x += xSideT;
569}
570
571
572#ifdef WINANY

Callers 2

xscreen.cppFile · 0.85
NWmCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected