Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal is significantly scaled down on MacOS #3

Open
l4tte opened this issue Sep 30, 2020 · 5 comments
Open

Terminal is significantly scaled down on MacOS #3

l4tte opened this issue Sep 30, 2020 · 5 comments

Comments

@l4tte
Copy link

l4tte commented Sep 30, 2020

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

@redblobgames
Copy link

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.

@l4tte
Copy link
Author

l4tte commented Jan 1, 2021

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

@quulah
Copy link

quulah commented Jul 5, 2021

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

@hazeled
Copy link

hazeled commented Jul 6, 2021

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

@quulah
Copy link

quulah commented Jul 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants