bearlibterminal
bearlibterminal copied to clipboard
Terminal is significantly scaled down on MacOS
The code
#include <stdio.h>
#include "BearLibTerminal.h"
int main()
{
terminal_open();
terminal_print(1, 1, "Hello, world!");
terminal_refresh();
while (terminal_read() != TK_CLOSE);
terminal_close();
}
As taken from here will compile and run just fine, but the text is significantly scaled to 25% of the display
This happens with all BearLibTerminal terminals, for example, the SampleOmni program looks like this
And the mouse program looks like this (Mouse is in top right corner of screen)
My guess is that there's a mismatch between the window size in "points" and "pixels", and bearlibterminal is using one when it needs to use the other. I don't know how to fix it though.
I've been messing around with it, and you're right. It's an issue with glut too for the same reason
Has someone managed to workaround this or find the root cause?
It's most likely because of MacOS' retina HiDPI screens, they're scaled up and have more pixels than a standard screen
Yeah, sounds likely. I'm guessing we're waiting for this then: #9