| 555 | // "square". This rounds the higher value down and checks certain conditions. |
| 556 | |
| 557 | void 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 |
no outgoing calls
no test coverage detected