This commit is contained in:
Kovid Goyal 2021-12-05 13:26:06 +05:30
parent 525a32be51
commit f01446ff25
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -590,7 +590,7 @@ render_window_title(OSWindow *os_window, Screen *screen UNUSED, GLfloat xstart,
static GLfloat
gl_size(const unsigned int sz, const unsigned int viewport_size) {
// convert sz to OpenGL co-oridinate system. Checks that mapping back via roundf()
// convert sz to OpenGL co-ordinate system. Checks that mapping back via roundf()
// yields the same value.
const GLfloat px = 2.f / viewport_size;
GLfloat ans = px * sz;