* Scale a RectPadding to GUI zoom level. * @param r RectPadding at ZOOM_BASE (traditional "normal" interface size). * @return RectPadding at current interface size. */
| 47 | * @return RectPadding at current interface size. |
| 48 | */ |
| 49 | static inline RectPadding ScaleGUITrad(const RectPadding &r) |
| 50 | { |
| 51 | return {(uint8_t)ScaleGUITrad(r.left), (uint8_t)ScaleGUITrad(r.top), (uint8_t)ScaleGUITrad(r.right), (uint8_t)ScaleGUITrad(r.bottom)}; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Scale a Dimension to GUI zoom level. |
no outgoing calls
no test coverage detected