Files
kryon/include/ui_scaling.h
T
2026-07-16 23:36:17 -03:00

19 lines
408 B
C

#ifndef UI_SCALING_H
#define UI_SCALING_H
#include <stdint.h>
// Set the DPI scale factor (should be called once at startup)
void SetUIScale(float scale);
// Get the current DPI scale factor
float GetUIScale(void);
// Scale a pixel value by the DPI factor
int ScaleUIPx(int px);
// Scale and clamp a pixel value between min and max
int ClampUIPx(int px, int min_px, int max_px);
#endif // UI_SCALING_H