bearlibterminal icon indicating copy to clipboard operation
bearlibterminal copied to clipboard

Terminal is significantly scaled down on MacOS

Open l4tte opened this issue 4 years ago • 5 comments

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

image

This happens with all BearLibTerminal terminals, for example, the SampleOmni program looks like this

image

And the mouse program looks like this (Mouse is in top right corner of screen)

image

l4tte avatar Sep 30 '20 23:09 l4tte

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.

redblobgames avatar Jan 01 '21 12:01 redblobgames

I've been messing around with it, and you're right. It's an issue with glut too for the same reason

l4tte avatar Jan 01 '21 19:01 l4tte

Has someone managed to workaround this or find the root cause?

quulah avatar Jul 05 '21 17:07 quulah

It's most likely because of MacOS' retina HiDPI screens, they're scaled up and have more pixels than a standard screen

hazeled avatar Jul 06 '21 04:07 hazeled

Yeah, sounds likely. I'm guessing we're waiting for this then: #9

quulah avatar Jul 10 '21 09:07 quulah