| 2758 | } |
| 2759 | |
| 2760 | int FontSizeModifier(int fontSize, float zoomFactor) |
| 2761 | { |
| 2762 | int scaledFontSize = static_cast<int>(std::floor(fontSize * zoomFactor)); |
| 2763 | if (zoomFactor >= 2.0f) |
| 2764 | scaledFontSize -= static_cast<int>(zoomFactor); |
| 2765 | if (scaledFontSize < 1) |
| 2766 | scaledFontSize = 1; |
| 2767 | return scaledFontSize; |
| 2768 | } |
| 2769 | |
| 2770 | int ccGLWindowInterface::getFontPointSize() const |
| 2771 | { |
no outgoing calls
no test coverage detected